The @{} interpolates an array into your here-doc, and the inner [] creates an anonymous array, whose elements consist of whatever expression(s) you want to put between them.print <<HERE; This is a string. Here's some more. The time is currently: @{[ scalar localtime() ]} HERE
In reply to Re: Calling a function from within a HERE doc?
by Anonymous Monk
in thread Calling a function from within a HERE doc?
by borkabrak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |