Simple Perl question! Please help!
I need to be able to read from a file and then write over the text I just read from the same file.
I know to read from a file, you just use:
And to output to a file, you just use:
But what if I want to read and write to the same filename?? I keep getting errors when I try doing it like above.
Thanks for any help.