There's more than one way to do things | |
PerlMonks |
Re: opening new file in different directoryby nardo (Friar) |
on Oct 23, 2001 at 18:54 UTC ( [id://120801]=note: print w/replies, xml ) | Need Help?? |
If the last block of code is copied exactly then you are opening WRITE for reading which doesn't sound like what you want to do. If that works, but opening it for writing doesn't then you probably don't have permission to write to the file, but without telling us the value of $! it's difficult to diagnose exactly what your problems are.
In Section
Seekers of Perl Wisdom
|
|