use File::Find; use autodie; open (OUT, ">filelist.txt"); find( sub { + $temp = $File::Find::name; $temp =~ s/C:\/users\/User\/Music +\/(.*)/$1/gi; print OUT "$temp\n"; }, "C:/users/User/Music/"); c +lose OUT;
In reply to Re: How to make code smaller--saving steps and writing one liners
by Anonymous Monk
in thread How to make code smaller--saving steps and writing one liners
by Petras
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |