Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^5: File::Find and replacing spaces in filenames.

by 7stud (Deacon)
on Dec 23, 2012 at 03:29 UTC ( #1010070=note: print w/ replies, xml ) Need Help??


in reply to Re^4: File::Find and replacing spaces in filenames.
in thread File::Find and replacing spaces in filenames.

Because it's unnecessary. Why would you want to perform operations in your code that weren't necessary? Would you write a hello world program like this:

use strict; use warnings; use 5.012; if ("hello world" =~ /hello/) { print 'hello'; } if ("hello world" =~ /world/) { print " world\n"; } --output:-- hello world

That program unnecessarily uses program resources, and therefore it is bad programming style.


Comment on Re^5: File::Find and replacing spaces in filenames.
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1010070]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2014-09-21 11:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls