in reply to Return values from package methods
That gives me on 5.6.1#!/usr/bin/perl use Data::Dumper; my $test = Test->new; my $a = $test->test; my $b = \$test->test; print Dumper( $test->test ); print Dumper( $a ); print Dumper( $b ); exit 0; package Test; use strict; sub new { return bless {}, shift; } sub test { } 1; __END__
Looks rather strange to me.$VAR1 = bless( {}, 'Test' ); $VAR1 = undef; $VAR1 = \bless( {}, 'Test' );
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Return values from package methods
by dragonchild (Archbishop) on Aug 19, 2003 at 13:13 UTC |