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.
In reply to Re: unless
by crouchingpenguin
in thread multiple commands before unless ?
by emilford
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |