using http://www.unix.org.ua/orelly/perl/advprog/ch05_01.htm maybe it helps
#!/usr/bin/perl $t=' "$tt is cool\n"'; $tt="perl"; print eval $t; thanks regards # 2008/1/23, Bryan R Harris <[EMAIL PROTECTED]>: > > > > >> Is there any way to change the last statement to do what I want, which > in > >> this case is print "perl is cool"? > > [stuff cut out] > > > (my $new_message = $message) =~ s/\$(\w+)/$includes{$1}/g; > > [stuff cut out] > > Um, I guess... I was more curious if there wasn't something like: > > print "\S$b\E is cool\n"; > > That would force it to re-evaluate the string at runtime... You know, > sort > of the opposite of what \Q and \E do? > > That's a good-enough way to do it, I suppose. > > - B > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > http://learn.perl.org/ > > >