hasimir44 has asked for the wisdom of the Perl Monks concerning the following question:
The Output looks like this:chomp($ll[0] = `ls -lto $path/*B1006* |head -n 1`); chomp($ll[1] = `ls -lto $path/*B1106-* |head -n 1`); chomp($ll[2] = `ls -lto $path/*B11062* |head -n 1`); $next = 0; foreach (@ll) { if (m#([A-Z][a-z][a-z]\s[0-9][0-9]\s[0-9][0-9]:[0-9][0-9])\s(/.+\. +Z)#) { $stamp[$next] = $1; $name[$next] = $2; } print "\$name[\$next]: $name[$next]\n"; print "\$stamp[\$next]: $stamp[$next]\n"; $next++; }
I am the young grasshopper. In one hour, I will be off work and practicing my drunken style :) Cheers.$name[$next]: /<path>/B1006-cnvexp.20060605.200841.Z $stamp[$next]: Jun 05 20:08 $name[$next]: /<path>/B1106-cnvexp.20060605.2008.Z $stamp[$next]: Jun 05 20:09 $name[$next]: /<path>/B11062-cnvexp.20060605.2008.Z $stamp[$next]: Jun 05 20:09
2006-06-06 Retitled by planetscape, as per Monastery guidelines
Original title: 'Tips for elegence'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Tips for elegance
by Zaxo (Archbishop) on Jun 06, 2006 at 05:06 UTC | |
|
Re: Tips for elegance
by GrandFather (Saint) on Jun 06, 2006 at 05:56 UTC | |
|
Re: Tips for elegance
by japhy (Canon) on Jun 06, 2006 at 12:08 UTC | |
|
Re: Tips for elegance
by Samy_rio (Vicar) on Jun 06, 2006 at 05:05 UTC | |
|
Re: Tips for elegance
by polettix (Vicar) on Jun 06, 2006 at 11:05 UTC |