B
bill
[ My first post on this this question contained a typo that
made the code included in that post inoperative. Please disregard
it. ]
What's the best way to create an empty file? I mean is there
something less verbose and circuitous than
{
my $inane;
open $inane, '>', $empty and close $inane
or die "Failed to create $empty: $!\n";
}
and that does not use system(), as in
system('touch', $empty);
?
Thanks!
bill
made the code included in that post inoperative. Please disregard
it. ]
What's the best way to create an empty file? I mean is there
something less verbose and circuitous than
{
my $inane;
open $inane, '>', $empty and close $inane
or die "Failed to create $empty: $!\n";
}
and that does not use system(), as in
system('touch', $empty);
?
Thanks!
bill