And I get the following (unsightly) outputno strict; # 1 # 2 # 3 # 4 sub foo { } # 5 @bar = \&foo; # 6 $baz = "a string"; # 7 %this = qw/une deux/; # 8 # 9 # 10
Also, your script will always slurp the number of lines as provided by the last argument, which would seem to be unintended behaviour.arrays ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: bar functions ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: foo hashes ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: this ios packages scalars ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: BEGIN ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: bar ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: baz ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: foo ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: this unknowns arrays ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: bar functions ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: foo hashes ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: this ios packages scalars ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: BEGIN ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: bar ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: baz ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: foo ThisIsAnotherPackageAndMostLikelyWillNeverCollideWithAnyOtherN +amespace:: this
As for alternatives, you might want to look at Data::Dumper or the much more accurate Data::Dumper::Streamer for displaying the contents of a symbol table.
_________
broquaint
In reply to Re: Devel::Symdump without Devel::Symdump interference
by broquaint
in thread Devel::Symdump without Devel::Symdump interference
by eXile
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |