develooper Front page | perl.beginners | Postings from April 2010

Here Docs

Thread Next
From:
Joseph L. Casale
Date:
April 30, 2010 09:27
Subject:
Here Docs
Message ID:
CA5A491E9DEFBE4CB777DE97E21575E99EA2B8@prato.activenetwerx.local
Inside a here doc, how can I force an expression to be evaluated
such as localtime:

print <<"END";

`localtime time`
Foo
Bar 

END


I know I can simply create the var before,
my $var = localtime time;

But just curious how to evaluate expressions inside this...

Thanks!
jlc

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About