in reply to multiple commands before unless ?
Or use the comma operator:
#!/usr/bin/perl use strict; use warnings; use constant TRUE => 0; printf("System Error\n"), exit unless TRUE; print 'I should never be printed',"\n";
Update: Changed code so it follows question example code.
cp
----
"Never be afraid to try something new. Remember, amateurs built the ark. Professionals built the Titanic."
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: unless
by emilford (Friar) on Jun 25, 2003 at 18:27 UTC |
In Section
Seekers of Perl Wisdom