in reply to Re: Re: reading from a file and splitting
in thread reading from a file and splitting

thank you, this is what i ended up with:
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"; }