Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Moose and File::Temp

by tobyink (Abbot)
on Nov 19, 2012 at 13:19 UTC ( #1004533=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $self->{tempfile} = File::Temp->new(UNLINK => 1, SUFFIX => '.tmp');
    print $self->{tempfile} "I am here";
    
  2. or download this
    $self->tempfile( File::Temp->new(UNLINK => 1, SUFFIX => '.tmp') );
    print {$self->tempfile} "I am here";
    
  3. or download this
    package test;   # not 'test.pm'
    use Moose;
    ...
        my $self = shift;
        print { $self->tempfile } "I am here";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (13)
As of 2014-07-28 20:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (209 votes), past polls