Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
  2. or download this
    $ perl pm_11103133.pl <xy.data
    Global symbol "$lines" requires explicit package name (did you forget 
    +to declare "my $lines"?) at pm_11103133.pl line 3.
    ...
    Global symbol "$input" requires explicit package name (did you forget 
    +to declare "my $input"?) at pm_11103133.pl line 5.
    Global symbol "$lines" requires explicit package name (did you forget 
    +to declare "my $lines"?) at pm_11103133.pl line 6.
    Execution of pm_11103133.pl aborted due to compilation errors.
    
  3. or download this
    #!env perl
    use strict;
    ...
        my @largest_number = sort {$a <=> $b} @$input;
        print "$lines\n";
    }
    
  4. or download this
    $ perl pm_11103133.pl <xy.data
    Global symbol "$input" requires explicit package name (did you forget 
    +to declare "my $input"?) at pm_11103133.pl line 7.
    Execution of pm_11103133.pl aborted due to compilation errors.
    
  5. or download this
    $ perl pm_11103133.pl <xy.data
    Hello, I'm 18
    ...
    1 this year is 2019 1
    
    1 2 3 - 4
    
  6. or download this
    #!env perl
    use strict;
    ...
            $largest_number_so_far = $largest_number[0];
        }
    }
    
  7. or download this
    $ perl pm_11103133.pl <xy.data
    Hello, I'm 18
    
    Use of uninitialized value in numeric gt (>) at pm_11103133.pl line 13
    +, <STDIN> line 4.
    
  8. or download this
    #!env perl
    use strict;
    ...
            $largest_number_so_far = $largest_number[0];
        }
    }
    
  9. or download this
    $ perl pm_11103133.pl <xy.data
    CURRENT LINE: <Hello, I'm 18
    ...
    Use of uninitialized value $largest_number[0] in concatenation (.) or 
    +string at pm_11103133.pl line 14, <STDIN> line 4.
    LARGEST IS:
    Use of uninitialized value in numeric gt (>) at pm_11103133.pl line 16
    +, <STDIN> line 4.
    
  10. or download this
    $ cat pm_11103133.pl
    #!env perl
    ...
            }
        }
    }
    
  11. or download this
    $ perl pm_11103133.pl <xy.data
    CURRENT LINE: <Hello, I'm 18
    ...
    NUMBERS FOUND IN LINE:
    Use of uninitialized value $largest_number[0] in concatenation (.) or 
    +string at pm_11103133.pl line 14, <STDIN> line 4.
    LARGEST IS:
    
  12. or download this
    $ perl pm_11103133.pl <xy.data
    Hello, I'm 18
    
    1 this year is 2019 1
    
  13. or download this
    $ cat pm_11103133.pl
    #!env perl
    ...
    }
    
    print "$line_with_largest_number\n";
    
  14. or download this
    $ perl pm_11103133.pl <xy.data
    1 this year is 2019 1