and you can read as:open OUT, ">output.txt" or die "Can't open file\n"; print OUT foo close OUT
Don't know if this is exactly what you want.open IN, "output" or die "Can't open file\n"; while(<IN>) { # do something with $_ } close IN;
Alberto Simões
In reply to Re: Open/Save
by ambs
in thread Open/Save
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |