Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I want this:-rwxr-xr-x 1 svcn-3 ymn-3 7618486 Jan 20 21:42 20040120-299-x49.exe
I would put this in a variable:Updated on Jan 20 at 21:42 hours
Any better way to do this??my $var = '-rwxr-xr-x 1 svcn-3 ymn-3 7618486 Jan 20 21:42 20040120- +299-x49.exe'; my @newvar = split ' ', $var; print "Update at $newvar[5] $newvar[6] at $newvar[7]";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: split efficiency needed
by markov (Scribe) on Jan 21, 2004 at 14:21 UTC | |
|
Re: split efficiency needed
by Roger (Parson) on Jan 21, 2004 at 13:51 UTC | |
by Anonymous Monk on Jan 21, 2004 at 15:18 UTC |