Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Useless unless

by Anonymous Monk
on Aug 09, 2005 at 09:06 UTC ( [id://482146]=note: print w/replies, xml ) Need Help??


in reply to Re: Useless unless
in thread Useless unless

Sure, it works, and has no ill effects, but as a matter of style, it's just bad.
That's just a matter of opinion. A piece of opinion that doesn't come with a rational. Knowing you find the style bad is interesting for census takers, programmers will find it more interesting why you find it bad style.

I rank using the trinary in void context on the same level as using 'or' or 'and' in void context:

/^#/ and next; open ... or die ...; -d $_ ? handle_directory($_) : handle_file($_);
and those are almost on the same level as using statement modifiers:
next if /^#/; die ... unless open ...; parse_file($_) for @files;
Either they are all bad, or none of them are. And for me, none of them are.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2024-03-28 12:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found