in reply to Re^4: Merge 2 lines in 1 die statement
in thread Die statement with text & formatting of the user
print "no rows\n", exit unless $rows; print "we seem to have rows.\n"; __END__
and
print "no rows\n" and exit unless $rows; print "we seem to have rows.\n"; __END__ no rows
update: as ikegami point out below, you are not passing a list to print - since you treat print as a function, and are passing in its arguments in parens. With the comma operator, you are still evalutaing a list, and in that list exit gets evaluated..
--shmem
_($_=" "x(1<<5)."?\n".q·/)Oo. G°\ /
/\_¯/(q /
---------------------------- \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Merge 2 lines in 1 die statement
by ikegami (Patriarch) on Apr 28, 2007 at 15:44 UTC | |
|
Re^6: Merge 2 lines in 1 die statement
by Nik (Initiate) on Apr 28, 2007 at 11:33 UTC | |
by shmem (Chancellor) on Apr 28, 2007 at 12:23 UTC | |
by Nik (Initiate) on Apr 28, 2007 at 13:41 UTC | |
by shmem (Chancellor) on Apr 28, 2007 at 15:09 UTC | |
by Nik (Initiate) on Apr 28, 2007 at 17:10 UTC | |
|