Demystifying open source
## ------ zero an existing file -----------## just pass in a string file namesub zerofile { foreach (@_) { open FH, ">", $_ or die "Couldn't open '$filename': $!"; close FH; }}
unlink <$path/*.txt>;
Post a Comment
No comments:
Post a Comment