home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!sunic!dkuug!uts!id.dth.dk!ej
- From: ej@id.dth.dk (Erik Johansen (EMP))
- Newsgroups: comp.lang.perl
- Subject: Re: Null output as a string?
- Message-ID: <1992Aug25.120446.25067@id.dth.dk>
- Date: 25 Aug 92 12:04:46 GMT
- References: <1992Aug25.003027.9383@kakwa.ucs.ualberta.ca>
- Organization: Department of Computer Science
- Lines: 22
-
- sherwood@fenris.space.ualberta.ca (Sherwood Botsford) writes:
-
- >@message = `/usr/local/bin/gfind . -user $u -atime +9 -ls
- >`;
- >if (@message != "") {
- > print("mail sent to $u\n");
- > open( MAILOUT, "|/usr/ucb/Mail -s \"48 Hr Notice:
- >/u/scratch purge\" $u");
- >..
-
- If you want to use string compare - use string operands.
- In other words it should work if you write
-
- $message = `/usr/local/bin/gfind . -user $u -atime +9 -ls`;
- if ($message ne "") {
- ...
-
-
- --
- ---
- Erik Johansen E-mail: ej@id.dth.dk
- Institute for Computer Science, Copenhagen, Denmark
-