Michael Ulm
2/3/2006 2:16:00 PM
Wmute wrote:
> Hello,
>
> 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 Ulm
R&D Team
ISIS Information Systems Austria
tel: +43 2236 27551-219, fax: +43 2236 21081
e-mail: michael.ulm@isis-papyrus.com
Visit our Website: www.isis-papyrus.com
---------------------------------------------------------------
This e-mail is only intended for the recipient and not legally
binding. Unauthorised use, publication, reproduction or
disclosure of the content of this e-mail is not permitted.
This email has been checked for known viruses, but ISIS accepts
no responsibility for malicious or inappropriate content.
---------------------------------------------------------------