ZHAO, BING wrote:
Hi,
unlink $file works fine, but link $file doesn't even
exist,
Did you search seacrh.cpan.org for "link"?
How about "touch"?
if you had you'd have found this right off:
http://search.cpan.org/~nwetters/File-Touch-0.01/Touch.pm
Also
perldoc -f open
open my $new_fh, '>', 'foo' or die "foo open failed: $!";
close $new_fh;
$ ls foo
ls: foo: No such file or directory
$ perl -mstrict -we 'open my $new_fh, ">", "foo" or die "foo open
failed: $!";close $new_fh;'
$ ls foo
foo
$
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>