My answers reveal a more boring mind I think.
Favorite Perl Instruction |
sub |
I love closures |
Least Favorite Instruction |
reset |
Have you read the description of reset? |
Favorite Looping Mechanism |
foreach |
Why allow mistakes to be made? |
Least Favorite Looping Mechanism |
map |
If you won't use the return, why be confusing and obfuscate? |
Favorite Module |
Exporter |
Narrowly beat Carp |
Least Favorite Module |
Number::Format |
The bugs in it taught me things I didn't want to know about Perl. |
Favorite Special Variable |
$! |
Need I explain? |
Least Favorite Special Variable |
$` and $' |
Did I want the performance hit? |
Favorite variable type |
Anonymous hash |
Very flexible |
Favorite Command Line Switch |
-c |
Catch any typos in my incomplete edit |
Least Favorite Command Line Switch |
-u |
Is it worth the pain of getting this to work? |
Favorite Pragma |
strict |
Catch my typos please |
Favorite Regexp Modifier |
g |
Particularly in scalar context |
Favorite Regexp Metachar |
\w |
|
Favorite Descriptive Variable Name |
$_ |
Only when it makes sense though |
Favorite HERE Doc Delimiter |
EOT |
End Of Text |
Favorite Filehandle |
my $fh = do {local *FH}; |
What do you mean you didn't know that worked? |
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|