- or download this
open FILEHANDLENAME, ">>storage.txt";
print FILEHANDLENAME $name," ",$num,"$email","\n";
- or download this
$datafile = '/full/path/to/storage.txt'; #somewhere near the top
...
open FILEHANDLENAME, ">>$datafile" or die "Couldn't open $datafile for
+ appending: $!";
print FILEHANDLENAME "$name $num $email\n";
- or download this
$line=<FILE>;
while ( my $line = <FILE> ) {
- or download this
---------- BEGIN storage.txt ------------
NAME EMAIL PHONE
Joe Blow joe@joe.com 123-1233
Jon Blow jon@jon.com 345-3455
---------- END storage.txt ------------