in reply to Re: what is the purpose of Tie::File
in thread what is the purpose of Tie::File
- Using perl -l gives you autochomp which Tie::File has built in. From your other nodes I see you use this frequently to add a newline when you print.
- $^W = 1; and then use Warnings; a few lines later?
- Using autodie means the script stops after the unlink line even if there is a file to delete. Why not just die if -e $file; ?
- Does $| = 1; have any effect on Tie::File? With the option memory => 0 it is already not cacheing anything.
I don't understand the point of this code. Tying to a file that doesn't exist, adding a line, then deleting the newly created file doesn't seem useful.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: what is the purpose of Tie::File
by Anonymous Monk on Nov 12, 2012 at 04:03 UTC | |
by davido (Cardinal) on Nov 12, 2012 at 05:41 UTC | |
by marto (Cardinal) on May 02, 2013 at 09:20 UTC |
In Section
Seekers of Perl Wisdom