use Cwd 'chdir'; chdir "../htdocs/"; open (FILE, "<$ENV{'PWD'}info.txt") || print "There is no file here in + $ENV{'PWD'}info.txt"; while ( my $line = <FILE> ) { chomp($line); #code.... }
In reply to Re^2: File Open Issue
by Anonymous Monk
in thread File Open Issue
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |