Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: Stupid mistakes I repeatedly make

by tlm (Prior)
on Mar 27, 2005 at 14:28 UTC ( #442623=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open OUT ">$output_file" or die $!;
    
  2. or download this
    print OUT, "foo bar baz\n";
    
  3. or download this
    open my $out, '>', $output_file or die $!;
    
  4. or download this
    push @foo = 'bar';  # aaaaargh!!!
    
  5. or download this
    my $foo = $bar or $baz;
    print "You have $foo foo" . $foo==1?'':'s' . ":\n";
    my @frobozz = map foo($_) or bar($_), @baz;
    
  6. or download this
    eval {
      what() if $i == do { this() };
    ...
      return "don't worry $name, be happy\n";
    }
    print $coderef->('Pustular');
    
  7. or download this
    eval { "require $foo; 1" } or die "Where's $foo?\n";
    print $foo->happiness();
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (16)
As of 2015-07-07 15:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (90 votes), past polls