Help for this page

Select Code to Download


  1. or download this
    @params=<STDIN>;
    
  2. or download this
    15:58 >perl -MData::Dump -wE "my @params = <STDIN>; dd \@params;"
    1
    ...
    ["1\n", "2\n", "3\n"]
    
    15:59 >
    
  3. or download this
    %numberoftimes={};
    
  4. or download this
    while(<FH>){
    
  5. or download this
    open(FH, '<', $file)
        or die "Cannot open file '$file' for reading, stopped";
    
  6. or download this
    while(<FH>){
         @lines=split("\n",$file);
         for $line(@lines){
    
  7. or download this
    while (my $line = <FH>) {
        chomp $line;
        for my $p (@params) {
            ... # use $line
    
  8. or download this
    if (index($line,$p)){