in reply to OOP: Printing in EOF block
If you want to interpolate it without an extra variable, you can say:
my $html =<<"EOF"; <tag> @{[ $session->param('x') ]}</tag> EOF
or
my $html =<<"EOF"; <tag> ${\$session->param('x')}</tag> EOF
(The first one implies list context, the latter scalar context.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: OOP: Printing in EOF block
by speckled (Novice) on Dec 06, 2011 at 13:59 UTC |