Re: File Existance

2005-09-28 Thread Robin
(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

Re: File Existance

2005-09-28 Thread Robin
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 {

Re: File Existance

2005-09-28 Thread ganesh
-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

File Existance

2005-09-28 Thread gustav
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