Help for this page

Select Code to Download


  1. or download this
    chomp($phi = `ls slk`);
    chomp($phi2 = `ls *.csv`);
    open(OUT,"> /home/Aug18.csv") or die "Cannot open output file;
    open(READDATA, "< /home/$phi") or die "Cannot Open file;
    
  2. or download this
    @phi2 = `ls *.csv`;
    chomp @phi2;  # chomp will apply to every element of the array
    
  3. or download this
      your_script.pl  slk  someinput.csv > /home/Aug18.csv
    
  4. or download this
    #!/usr/bin/perl -w
    
    ...
            print "$_,$h{$1}\n";
        }
    }