learningperl01 has asked for the wisdom of the Perl Monks concerning the following question:
sub search { if ( (-f) && /08\..*00$/ ) open the file while ( $line = <open log file> ) { if ( $line =~ m/regex/ ) { @spt = split(/\:/, $line); push(@spt1,@spt[1]); foreach $spls (@spt1) { find(&wanted, $seek_path, $spls); sub wanted { print $spls; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to pass a variable to a subroutine
by ikegami (Patriarch) on Dec 05, 2008 at 16:37 UTC | |
by almut (Canon) on Dec 05, 2008 at 18:19 UTC | |
by ikegami (Patriarch) on Dec 06, 2008 at 05:56 UTC | |
by learningperl01 (Beadle) on Dec 06, 2008 at 22:12 UTC | |
by ikegami (Patriarch) on Dec 06, 2008 at 22:43 UTC | |
| |
|
Re: How to pass a variable to a subroutine
by mikelieman (Friar) on Dec 05, 2008 at 16:16 UTC | |
|
Re: How to pass a variable to a subroutine
by DStaal (Chaplain) on Dec 05, 2008 at 16:20 UTC |