(Bringing this back to the list)
On Wednesday 28 September 2005 21:09, you wrote:
> I don't get this to work. What am I doing wrong? Must the path be
> included? My program is like this:
>
> my $program = "ls";
>
> if (-e $program) {
> #execute program
> }
yes, it must include the full path:
fore
On Wednesday 28 September 2005 20:55, [EMAIL PROTECTED] wrote:
> I have a lot of experience in programming, but WHAT command do I use
> for checking if a file exists... Have searched google, but can't seem
> to find any good answers...
if (-e "/tmp/myfile") {
print "File! :)\n";
} else {
-e filename
Regards,
Ganesh
[EMAIL PROTECTED] wrote:
Hi there!
I have a lot of experience in programming, but WHAT command do I use for
checking if a file exists... Have searched google, but can't seem to find
any good answers...
/G
http://www.varupiraten.se/
--
To unsubscribe, e-ma
Hi there!
I have a lot of experience in programming, but WHAT command do I use for
checking if a file exists... Have searched google, but can't seem to find
any good answers...
/G
http://www.varupiraten.se/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL P