Pathologically Eclectic Rubbish Lister | |
PerlMonks |
RE: Re: Writing to filesby btrott (Parson) |
on Apr 10, 2000 at 20:42 UTC ( [id://7245]=note: print w/replies, xml ) | Need Help?? |
Unfortunately, this doesn't work, because the BEGIN occurs
before STDOUT is redirected to the output file (the file
you're writing to). Plus, in your case, you used single
quotes to surround your "\n", so it didn't get interpolated. Here's what I get: I tried this myself, the other day, but ran into the same problem.
In Section
Seekers of Perl Wisdom
|
|