how is this faster than the above? it looks like it's doing the same thing (while through the file and print $.). is there some sort of overhead with a continue block?
also, is -a doing something special? I'm confused because perl --help says -a autosplit mode with -n or -p (splits $_ into @F) which doesn't seem to apply here.
"Argument is futile - you will be ignorralated!"
In reply to Re: Re: Re: Count number of lines?
by larryk
in thread Count number of lines?
by ginocapelli
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |