Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Little annoying mistakes ... of others

by ikegami (Patriarch)
on Dec 06, 2008 at 17:52 UTC ( [id://728579]=note: print w/replies, xml ) Need Help??


in reply to Little annoying mistakes ... of others

A problem with your question, not an answer to your question:
@data = map { s/./X/; $_} @data;
is incorrect too. Redundant, at least. It does the same as
map { s/./X/ } @data;
which is a poor way (in my opinion) to write
s/./X/ for @data;

If you're setting up a chain, you'd want one of
map { my $s = $_; $s =~ s/./X/; $s }
apply { s/./X/ }   # From List::MoreUtils
Filter { s/./X/ }  # From Algorithm::Loops

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2026-02-10 05:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.