Help for this page

Select Code to Download


  1. or download this
    open(file1,"file1.txt");
    
  2. or download this
    open my $file1, '<', "file1.txt"
      or die "Can't open `file1.txt': $!\n";
    
  3. or download this
    while (<file1>)  
     {
       chop();
    
  4. or download this
       $REC     = $_;
       @LINEREC = split(/\,/,$REC);
    
  5. or download this
    use strict;
    use warnings;
    
  6. or download this
       my $REC     = $_;
       my @LINEREC = split(/\,/,$REC);
    
  7. or download this
    open(file2,"file2.txt");
    
    while (<file1>)
    
  8. or download this
    if ( $LINEREC[0] eq $LINEREC[1])
    {
    print $LINEREC[0];
    {
    
  9. or download this
    #!/usr/bin/perl
    
    ...
    }
    
    __END__