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

Re: Re: spliting a string

by Rhose (Priest)
on Dec 04, 2001 at 19:36 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://129342]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (3)
As of 2024-04-26 03:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found