[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PERL



> - -----------------------
> $t = "\(c";
> $_ = "\(a \(b \(c \(d \(e";
> if ( /$t/ ){
> 	print "found!";
> }
> - -----------------------
> Doesn't works. Why?

First line should be single-quoted:

$t = '\(c';

Andy

Dr Andy Tsouladze
Unix System Administrator
Motorola Communications Israel
mailto:andyt@mcil.comm.mot.com
mailto:andy@spl.co.il (old)
mailto:andy@environment.negev.k12.il
http://www.spl.co.il/~andy