Help for this page

Select Code to Download


  1. or download this
    #do{$data = $data . $_ } while (<DATA>); #gives a uninitialized value 
    +in concatenation
    
  2. or download this
    my $data;
    while (<DATA>) { $data .= $_ }
    
  3. or download this
    $ perl -we 'my $foo; $foo = $foo . "foo"'    # no warning
    
  4. or download this
    $ perl -we 'my $foo; my $bar = $foo . "foo"'
    Use of uninitialized value $foo in concatenation (.) or string at -e l
    +ine 1.