From: "Joseph L. Casale" <jcas...@activenetwerx.com>
> Inside a here doc, how can I force an expression to be evaluated
> such as localtime:
> 
> print <<"END";
> 
> `localtime time`
> Foo
> Bar 
> 
> END

use Interpolation eval => 'eval';

print <<"END";

 $eval{localtime time}
 Foo
Bar 

END


CPAN - http://search.cpan.org/

Jenda
===== je...@krynicky.cz === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to