Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    # close file:
    
    close IN;
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
    while(my $line =<IN>){ ## reading a file line by line
      # here you need to put some regular expression to identify your web 
    +addresses
    }
    
  3. or download this
    www.1  5
    www.2  7
    www.3  2
    ...
    
  4. or download this
    #hey, what is my current count for www.2 ?
    my $value = $hash{"www.2"};
    print "$value\n"; # What does "\n" stand for?
    
  5. or download this
    #!/usr/bin/perl
    use strict;
    ...
    }