Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Bless and Do

by kennethk (Abbot)
on Jun 17, 2014 at 16:08 UTC ( [id://1090165]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $variable;
    ANON_SCALAR_BLOCK: {
        my $x = 49;
        $variable = bless \$x, 'Rates::Notification';
    }
    
  2. or download this
    my $variable = do {
            my $x = 49;
            bless \$x, 'Rates::Notification';
        };
    

Log In?
Username:
Password:

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

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

    No recent polls found