in reply to How to detect a returns value gracefully
use strict; use warnings; my $aFoo = []; my $result = \$aFoo; print 'ref $result : ' . ref($result) . "\n"; print 'ref $$result : ' . ref($$result) . "\n";
prints
ref $result : REF ref $$result : ARRAY
Best, beth
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to detect a returns value gracefully
by Anonymous Monk on Feb 26, 2009 at 08:39 UTC | |
by almut (Canon) on Feb 26, 2009 at 11:18 UTC | |
by Anonymous Monk on Feb 26, 2009 at 19:53 UTC | |
by almut (Canon) on Feb 26, 2009 at 20:00 UTC | |
by Anonymous Monk on Feb 28, 2009 at 08:09 UTC |