Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: assign a string using multiline format

by Taulmarill (Deacon)
on Aug 26, 2005 at 11:57 UTC ( [id://486845]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://486845]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-25 19:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found