Thread return() aus eval()-Block geht nicht
(4 answers)
Opened by Superfrank at 2009-01-21 17:54
Es geht auch ohne Warnung mit goto:
Code (perl): (dl
)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 use strict; use warnings; sub routine { print "test1\n"; eval { goto OUT; }; print "test2\n"; OUT: print "test3\n"; } routine(); When C++ is your hammer, every problem looks like your thumb.
|