Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    use strict;
    
    use warnings;
    
  2. or download this
    my $input = $ARGV[0];
    
    open(INPUT, "$input") || die "Oops!: Can't open file: $!\n";
    ...
    my @inputfile = <INPUT>;
    
    for(my $j = 0; $j < @inputfile; $j++)
    
  3. or download this
    while (<>) {
    # ...    
    }
    
  4. or download this
    #!/usr/bin/perl -ln
    
    ...
    print if -130 < $_ and $_ < -125;
    
    __END__