So, I'm trying to overload the iterative operator: , which, according to the camel, is possible. However, I'm running into a slight problem:
my $data = <$obj>;
causes my iterator sub to be called once, in scalar context.
my @data = <$obj>;
causes my iterator sub to be called once, in scalar context.
ARRRRGG!
wantarray returns false no matter how I pervert my calling method, and I can't figure out why.
Overload style (Score:3, Informative)
Reply to This
Re:Overload style (Score:1)
cheers for the tip though, will let you know how it works out.
James.