Dismas has asked for the wisdom of the Perl Monks concerning the following question:
and here's the regexp:my ($p, $l, $o, $g, $s) = split( /\s+/, $lsl );
To further slow things down, in both subroutines the value of $lsl is gotten by the following:my ($p, $l, $o, $g, $s) = ($lsl =~ /^(.*?)\s+(.*?)\s+(.*?)\s+(.*?)\s+(.*)$/);
I need all the info provided by that line, but is there a quicker way to get it?my $lsl = `ls -l "$fnm" 2>&1`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Which witch is the quicker witch?
by broquaint (Abbot) on Aug 15, 2003 at 14:27 UTC | |
|
Re: Which witch is the quicker witch?
by bm (Hermit) on Aug 15, 2003 at 14:47 UTC | |
|
Re: Which witch is the quicker witch?
by tcf22 (Priest) on Aug 15, 2003 at 14:26 UTC | |
|
Re: Which witch is the quicker witch?
by ChrisS (Monk) on Aug 15, 2003 at 15:02 UTC | |
|
Re: Which witch is the quicker witch?
by rir (Vicar) on Aug 15, 2003 at 20:37 UTC | |
|
Re: Which witch is the quicker witch?
by bart (Canon) on Aug 16, 2003 at 11:21 UTC |