Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Re: Re: Working with Variables

by damian1301 (Curate)
on Apr 24, 2001 at 00:27 UTC ( #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


Comment on Re: Re: Re: Working with Variables
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2015-07-05 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (67 votes), past polls