open (file, "<file.txt"); @file = <file>; close (file); foreach $line(@file){ ($var1, $var2) = split(/\=\=/, $line); if($chat =~ /\b$var1\b/i){ #the item i was looking for print "$var2"; }
In reply to Re: Re: Re: reading from a file and splitting
by Eva
in thread reading from a file and splitting
by Eva
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |