priyankgandhi has asked for the wisdom of the Perl Monks concerning the following question:
while (<$fhlog>) { my $line = $_; my $bufferline; if ($line =~ /Finished (.*)\. Wrote (\d+) new, (\d+) duplicates, (\d+) + archived/) { &storeAdapterDetails($1, $2, $3, $4, $fhresult); next; } if ($line =~ /ERROR/) { $bufferline = '$line'; next; } if ($line =~ /.*Exception:/) { print "Found adapter: ".$bufferline; $flag = 1; }
20080916 Janitored by Corion: Added formatting, code tags, as per Writeup Formatting Tips
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: variable reference problem
by bobf (Monsignor) on Sep 11, 2008 at 03:19 UTC | |
by priyankgandhi (Novice) on Sep 12, 2008 at 08:34 UTC | |
by ikegami (Patriarch) on Sep 12, 2008 at 09:42 UTC | |
|
Re: variable reference problem
by ikegami (Patriarch) on Sep 11, 2008 at 00:02 UTC |