N
NoViagraHere
I am trying to open a text file in the same directory as the script is
located to retrieve stored info. The text file is simply named:
216.1.1.2
This code will NOT work:
$ip = '216.1.1.2';
open (data, $ip);
@mailtext=<data>;
close data;
print @mailtext;
however if I replace $ip as below, It DOES work. Any ideas?
open (data, '216.1.1.2');
@mailtext=<data>;
close data;
print @mailtext;
located to retrieve stored info. The text file is simply named:
216.1.1.2
This code will NOT work:
$ip = '216.1.1.2';
open (data, $ip);
@mailtext=<data>;
close data;
print @mailtext;
however if I replace $ip as below, It DOES work. Any ideas?
open (data, '216.1.1.2');
@mailtext=<data>;
close data;
print @mailtext;