- or download this
$ perl -e'BEGIN{@ns{keys %::} = ()}; $foo = "bar";@names = grep {!exis
+ts $ns{$_}} keys %::; print "@names",$/'
foo names
$
- or download this
print "foo has: ", $_, $"
for (grep {*foo{$_} qw/SCALAR ARRAY HASH CODE GLOB IO/;
- or download this
$ perl -e'BEGIN{@ns{keys %::} = ()}; $foo = "bar";@names = grep {!exis
+ts $ns{$_}} keys %::; print ${*foo{SCALAR}} ,$/'
bar
$