Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    $x = $x+1;
    
    print $x;
    
  2. or download this
    Use of uninitialized value in addition (+) at tmp.pl line 6.
    
  3. or download this
    #!/usr/bin/perl
    use strict;
    ...
    $x = $x ? $x+1 : 1;
    
    print $x;