in reply to Re: Moose and File::Temp
in thread Moose and File::Temp
You may have some difficulty with isa => 'FileHandle' because while FileHandle is a core Perl module, Moose uses the type constraint string "FileHandle" to refer to unblessed Perl file handles - i.e. not objects created by the FileHandle package.
open my $fh , "<", "temp.txt"; $self->fh($fh); while (<$fh>) { print $_; }
perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Moose and File::Temp
by gsiglet (Acolyte) on Nov 19, 2012 at 14:26 UTC | |
by tinita (Parson) on Nov 19, 2012 at 14:52 UTC |
In Section
Seekers of Perl Wisdom