in reply to Devel::Symdump without Devel::Symdump interference
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Devel::Symdump without Devel::Symdump interference
by eXile (Priest) on Apr 20, 2004 at 01:51 UTC | |
by broquaint (Abbot) on Apr 20, 2004 at 01:57 UTC |