Perl-Sensitive Sunglasses | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Congrats on your continuted progress to Sainthood. :)
1) A naked block can be used for various things. One of the more common is to limit the scope of variables. ie: or it's used to limit the scope of local()
2) Without knowing what you were doing with the regex, it is hard to say how it may have been wrong. 3) next goes to the next interation of the loop, not the last one. In effect it skips the rest of the current iteration (although it does execute the continue block if you have one). One common use is for skipping certian lines while reading a file. Update: Fix explaination of next In reply to Re: A few random questions from Learning Perl 3
by Paladin
|
|