Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: spliting a string

by Rhose (Priest)
on Dec 04, 2001 at 19:36 UTC ( #129342=note: print w/replies, xml ) Need Help??


in reply to Re: spliting a string
in thread spliting a string

*Smiles*

I would not feel too badly -- there have been lots of times I have seen things posted on PM and slapped my head because it was so obvious and I missed it. Case in point -- I used to use the "if !" structure a LOT, then one day I posted a reply and someone commented that I should have used "unless" to make the code more readable.

From that day on, my icky code has been improved (well, a little.)

print if ! /bad line/; print unless /bad line/;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://129342]
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 2019-08-21 22:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?