It's not clear to me whether you want to append to the file b.txt or whether you want to overwrite it. See open for the various parameters you can pass to the open function to tell it what it should do to the file b.txt.
In reply to Re: Best way to write in Perl
by Corion
in thread Best way to write in Perl
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |