Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Which bad behaviour most deserves an electric shock?

by Lori713 (Pilgrim)
on Apr 13, 2009 at 11:35 UTC ( #757197=note: print w/replies, xml ) Need Help??


in reply to Which bad behaviour most deserves an electric shock?

I didn't find in the poll the thing that annoys me the most... the failure to put a decent description in the title. I use this site **heavily** to search for answers and it's frustrating when there aren't any decent key words in the title.

<snip...> use strict; my ($response, $title); if ( $title eq 'Help!' || $title eq 'I get an error' || $title eq 'Homework' || $title eq 'Can you look at this' ) { $response = 'GRRRRRRRR'; }

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://757197]
help
Chatterbox?
[Eily]: there was a post some time ago about variable coming from regex taking more space than the same string defined directly IIRC
[Eily]: and if there's XS, make sure the scalar holds a string representation, that sounds like bad practice though (forcing that on the call side)
[choroba]: You should never pass $1 without double quotes to a sub
[choroba]: or "I should never", at least
[choroba]: that's not the sub's business
[Eily]: choroba but does $name = $1 solve the issue ?
[Eily]: if so, most subs start with my (VARIABLES) = @_ anyway
[moritz]: for short subs, I sometimes let them work on $_[0] directly

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2018-02-22 17:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When it is dark outside I am happiest to see ...














    Results (296 votes). Check out past polls.

    Notices?