Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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 contemplating the Monastery: (5)
As of 2014-09-23 01:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (210 votes), past polls