Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'A script to ease scp for files with odd names' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
A script to ease scp for files with odd names
Authored by: merlyn on Sep 13, '07 08:45:14AM

I really wish people understood that in Perl's "map", the $_ is an alias to the original data. And best practice is never to alter $_ inside that block, because you're altering the original data, turning it from functional programming to imperative programming. You could leave the assignment to @ARGV out, and the result would still be the same! Spooky, eh? That's why you don't do that.



[ Reply to This | # ]