Even with warnings and strictures in place, the program below ends at the goto and returns a termination code of zero (normal termination).
#!/usr/bin/perl -w use strict; $|++; print "foo!\n"; goto ""; print "Bar!\n"; print "baz!\n";
The debugger doesn't seem to show anything strange, either. I haven't looked at the goto() code, but it seems that it's jumping to the end of the program when none of the labels match.
What's curious is that there's a message about not finding the label printed if it's an ordinary label that's just not found. Any quoting construct which works out to null seems to just become an exit, though. For example, "\x0" or "\0" works as if there's nothing in the quotes. "\x0.*" works the same. Curiously, "\c" gives me an out of memory error.
In reply to Re: what does goto ""; mean?
by mr_mischief
in thread what does goto ""; mean?
by ambrus
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |