in reply to assign a string using multiline format

i'm not shure i understand the question. are you asking for something like this?
# one method my $foo = "sometext\nmore\n"; print $foo; # another method $foo = <<END; sometext more END print $foo;

Replies are listed 'Best First'.
Re^2: assign a string using multiline format
by danmcb (Monk) on Aug 26, 2005 at 12:06 UTC
    I was looking for the second. I didn't know you could assign with the << operator just like that. cheers.