--- Paul Johnson <[EMAIL PROTECTED]> wrote:
> On Thu, Jun 28, 2001 at 04:42:08PM +0800, Rajeev Rumale wrote:
> > I need to assign a long multiline string value to a scalar.
> >
> > I would like to know a way where i can assing a string value to a
> > scalar with inserting the escape char(\). something similar to
what
> > we do with print
> >
> > print << "label";
> > ........
> > .<title> $title.</title>.
> > ......
> > label
>
> How about
>
> my $var = << "label";
> ........
> .<title> $title.</title>.
> ......
> label
You might still have to quote stuff, though.
Try single-ticks.
my $var =<<'END';
this will save the dollar sign in $0, not the name of the program.
END
Doublequotes indicate interpolation in the here-doc.
Doublequotish behaviour is the default if you just put =<<END as a bareword.
__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/