Sometimes I look at your posts and wonder, do you even try and test your code? You have been here 3 years, you have to have learned something! Make a simple example like this.
#!/usr/bin/perl -w use strict; for my $no (1..10) { print "No. $no \n"; next unless $no < 5; print "\t is less than 5\n"; }
You would have an answer more quickly than the time you spent writing your post.
In reply to Re: Use of next unless and subs
by Herkum
in thread Use of next unless and subs
by Win
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |