in reply to system and -e question
Is there any explanation for that?
One explanation is that $file2 exists, but it wasn't created where you expected and you're looking in the wrong place for it.
You can use File::Spec to determine the absolute path of $file2 - untested:
Rob
One explanation is that $file2 exists, but it wasn't created where you expected and you're looking in the wrong place for it.
You can use File::Spec to determine the absolute path of $file2 - untested:
Cheers,use File::Spec; use warnings; use strict; my $file2 = 'whatever it is'; my $abs_path = File::Spec->rel2abs($file2); print $abs_path, "\n";
Rob
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: system and -e question
by dicty (Sexton) on Dec 31, 2012 at 20:21 UTC |
In Section
Seekers of Perl Wisdom