On Jan 23, 2008 2:17 PM, Gunnar Hjalmarsson <[EMAIL PROTECTED]> wrote:
> Bryan R Harris wrote:
> > Is there any way to change the last statement to do what I want, which in
> > this case is print "perl is cool"?
> >
> > **************************************
> > $a='$b is cool';
> >
> > ... bunch of stuff here...
> >
> > $b = "perl";
> >
> > print $a, "\n";'
>
>      print eval qq("$a"), "\n";
snip

String eval is evil.  Do not use string eval unless you have checked
the string to be eval'ed thoroughly.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to