Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
        open(my $fh, '>>', "$acct.txt") or die "Unable to open '$acct.txt'
    + for appending: $!\n";
        print $fh $line;
    }
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    ...
        }
        print { $fh->{$acct} } $line;
    }