Do you know where your variables are? | |
PerlMonks |
Re: Cannot skip first lines in arrayby periapt (Hermit) |
on Oct 20, 2004 at 12:42 UTC ( [id://400842]=note: print w/replies, xml ) | Need Help?? |
Assuming that @rebasefile is an array you can skip the first 10 indices in a couple of ways
foreach (@rebasefile){ next for (0..9); # of course, this has overhead of its own next if(/^\s*$/); ... } Update:Ignore the second loop. Never get smug before your first cup of coffee.PJ use strict; use warnings; use diagnostics;
In Section
Seekers of Perl Wisdom
|
|