Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Can I do this?if(($sym == 1) && ($mac == 1)) { print STDERR "Both not avail\n"; exit 0; }
Is there a better way or is this the best way to do this? I am puzzled if I can put the "exit" in the above statement the way I have it?print STDERR "Both not avail\n";exit if(($sym == 1) && ($mac == 1));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
•Re: Condense the script
by merlyn (Sage) on Oct 07, 2003 at 17:39 UTC | |
|
Re: Condense the script
by thelenm (Vicar) on Oct 07, 2003 at 17:42 UTC | |
by Anonymous Monk on Oct 07, 2003 at 19:06 UTC | |
|
print as method call
by ambrus (Abbot) on Oct 08, 2003 at 11:34 UTC | |
|
Re: Condense the script
by perl_in_NH (Initiate) on Oct 07, 2003 at 18:24 UTC | |
by fglock (Vicar) on Oct 07, 2003 at 18:35 UTC | |
by waswas-fng (Curate) on Oct 07, 2003 at 19:14 UTC |