On 8/11/11 Thu Aug 11, 2011 4:17 PM, "siegfr...@heintze.com" <siegfr...@heintze.com> scribbled:
> This works! Is there a way to do it with less typing? How can I do it > without creating a temporary variable "@p"? > Thanks, > siegfried > > find /xyz -exec perl -e 'foreach(@ARGV){ my @p=split "/"; rename $_, > "./$p[$#p].txt" } ' my $file = (split('/',$_))[-1]; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/