Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: poll ideas quest 2015 (declare variables)

by Anonymous Monk
on Oct 27, 2015 at 22:26 UTC ( [id://1146185]=note: print w/replies, xml ) Need Help??


in reply to Re: poll ideas quest 2015 (declare variables)
in thread poll ideas quest 2015

It should be a multiple-selection as I "declare my variables" ...

  • At the top of the relevant enclosure: before option handling; keeping value after a loop;
  • Right before their first use: for my $x = 1 if $test is buggy; no other way (search in loop; populating array or hash);
  • Inside their first use: preferred
  • I just copy what the code already does: in maintenance mode;
  • It varies by language: C, C++, SQL

Log In?
Username:
Password:

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

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

    No recent polls found