Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: (crazyinsomniac) Re: Excluding words with more than three a

by crazyinsomniac (Prior)
on Dec 21, 2001 at 04:10 UTC ( [id://133669]=note: print w/replies, xml ) Need Help??


in reply to Re: (crazyinsomniac) Re: Excluding words with more than three a
in thread Excluding words with more than three a

Hey, I'm glad I was wrong (well, on some points). That's pretty good actually (as knowledge of m// and y// escaped me for a long time when I started learning perl) and that is how I would've approached it about two years ago. In terms of efficiency, and this is without any benchmarks of this particular problem, but from previous knowledge, your best bet would be to use y// aka tr//.

 
___crazyinsomniac_______________________________________
Disclaimer: Don't blame. It came from inside the void

perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

  • Comment on Re: Re: (crazyinsomniac) Re: Excluding words with more than three a

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-18 22:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found