I am trying to replace some old Perl scripts with Ruby, however
i get stuck with this line
if line =~/($time)/ && line =~/(xxx)/
You probably want
if line =~ /#{$time}/ and line =~ /#{xxx}/
(assuming there is a variable called xxx).
HTH
Michael
–
Michael U.
R&D Team
ISIS Information Systems Austria
tel: +43 2236 27551-219, fax: +43 2236 21081
e-mail: [email protected]
Visit our Website: www.isis-papyrus.com