Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use warnings;
    ...
        print $s, "\n";
    }
    print $s, "\n";
    
  2. or download this
    $ perl t.pl
    "my" variable $s masks earlier declaration in same scope at t.pl line 
    +5.
    ...
    Use of uninitialized value $s in print at t.pl line 11.
    
    Foo
    
  3. or download this
    #!/tools/packarch/public/perl/5.8.8/bin/perl
    use strict;
    ...
    {
      print "string not found\n";
    }