Gossamer Forum
Home : General : Perl Programming :

Please help russian!

Quote Reply
Please help russian!
Please help russian pour perl programmer!

Can you in simple phrases explain me, how to load file, convert it to an array and find in it a necessary value...

Has i written it correctly?
Quote Reply
Re: [TS] Please help russian! In reply to
 
if (open (FIL, $fileName)) {
@FIL = <FIL>;
close FIL;
} else {
print die "$fileName not found\n";
}

$temp = "";
for $o (@FIL) {
$temp .= $o;
}

if ($temp =~ /hello/gi) { print "Found hello"; }