travisbickle34 has asked for the wisdom of the Perl Monks concerning the following question:
foreach (@rebasefile) { if (/1 .. 10/) {next;} if (/^\s*$/) {next;} my @fields = split("",$_); $name = shift(@fields); $site = pop(@fields); $regexp = IUB_to_regexp($site); $rebasehash{$name}="$site $regexp"; } return %rebasehash; }
Janitored by Arunbear - added code tags, as per Monastery guidelines
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Cannot skip first lines in array
by gellyfish (Monsignor) on Oct 20, 2004 at 12:28 UTC | |
by ihb (Deacon) on Oct 20, 2004 at 13:01 UTC | |
by tinita (Parson) on Oct 21, 2004 at 12:28 UTC | |
by travisbickle34 (Beadle) on Oct 20, 2004 at 12:42 UTC | |
|
Re: Cannot skip first lines in array
by zejames (Hermit) on Oct 20, 2004 at 12:46 UTC | |
by travisbickle34 (Beadle) on Oct 20, 2004 at 12:59 UTC | |
|
Re: Cannot skip first lines in array
by periapt (Hermit) on Oct 20, 2004 at 12:42 UTC | |
by dave_the_m (Monsignor) on Oct 20, 2004 at 12:53 UTC | |
by Taulmarill (Deacon) on Oct 20, 2004 at 15:24 UTC |