|
|
| There's more than one way to do things | |
| PerlMonks |
Re^3: File::Find and replacing spaces in filenames.by 7stud (Deacon) |
| on Dec 22, 2012 at 19:06 UTC ( #1010038=note: print w/ replies, xml ) | Need Help?? |
|
2. like this return 1 if $_ !~ /\s+/; ? No, because then you would have to perform a second match, which is unneeded. The s// operator returns the number of substitutions made, and 0 is perl's value for false.
However, according to the docs for File::Find the return value of the wanted() function is ignored, so just write:
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||