in reply to Accessing Large Else-If Condition in a Separate Files
In answer to the Update:
so chuck the whole current file into the __DATA__ section and:
local $/ = 'if ('; while (<DATA>) { chomp; next if ! length; next unless /eq '(\w+)'/; my $site = $1; push @{$site_data{$site}}, /'(\d+[^']+)'/gm; }
to parse it.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Accessing Large Else-If Condition in a Separate Files
by moritz (Cardinal) on Jun 05, 2007 at 09:35 UTC | |
by neversaint (Deacon) on Jun 05, 2007 at 09:49 UTC | |
by Util (Priest) on Jun 05, 2007 at 13:28 UTC |