Help for this page

Select Code to Download


  1. or download this
    !/usr/bin/perl -l
    use strict;
    ...
    __DATA__
    FOO
    BAR
    
  2. or download this
    Use of uninitialized value in concatenation (.) or string at ./828268.
    +pl line 14, <DATA> line 1.
    found 
    Use of uninitialized value in pattern match (m//) at ./828268.pl line 
    +16, <DATA> line 1.
    found BAR
    
  3. or download this
    sub foo {
        # ...
        local $_ = "whatever";
        $_ = undef;
    }
    
  4. or download this
    found FOO
    found BAR