Pearl if file exist
I dos batch:if not exist "c:\myfile\myfile.txt" goto :do_none
I pearl hvad gør man der på linux?
my $myfile = "/www/myfile.$somevar";
print $myfile;
open(MYFILE, $myfile);
if (MYFILE)
{
print "found";
}
else
{
print "not foundr";
}
øh hvordan gør man det?
