Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Moose and File::Temp

by tobyink (Canon)
on Nov 19, 2012 at 13:19 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1004533]
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 12:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found