$ perl -MData::Dumper -e '$p="foo/bar/rab/oof";@p=split"/",$p;@p=rever +se map{"/".join"/",@p[0..$_]}reverse(0..$#p);print Dumper @p'
;-)
Cheers,
Ovid
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: No other way?
by Ovid
in thread No other way?
by c0d34w4y
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |