Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: Re: Working with Variables

by damian1301 (Curate)
on Apr 24, 2001 at 00:27 UTC ( [id://74864]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Working with Variables
in thread Working with Variables

No, what you want is

$var=<<BLAH; print "Blah"; BLAH eval $var;


Because when it executes it it will print Blah out on the screen because you have print "Blah"; already inside $var;

UPDATE:WOULD SOMEONE MIND TELLING ME WHAT IS SO WRONG ABOUT THIS POST THAT I GOT A -- ON IT?? THIS IS SO *beeping* REDICULOUS. CONSTANTLY BEING ATTACKED.

Tiptoeing up to a Perl hacker.
Dave AKA damian

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found