b0VIM 5.7 ;( dodger gc ~dodger/cpan/Lister/HTML/Lister/Lister.pm 3210#"! U tp k O p F Y ad k h Z 8 _ <
x
K
y : _
~
r
[
9
+
p T 0
b I { J n 0 n P O @ ) x m W 5 m Q -
_ F it encounters a referenc my ($class,$type) = $refval =~ /^(.*)\=(.*)\(.*\)$/; my $refval = sprintf '%s', $val; !$ref) { $ref eq 'LVALUE' or $ref eq 'GLOB' or $ref eq 'REF' or $ref eq 'CODE' or $ref eq 'HASH' or $ref eq 'ARRAY' or unless ($ref eq 'SCALAR' or my $ref = ref $val; my $val = shift @stuff; push @list, sprintf "
%s", shift(@stuff); while (@stuff) { undef; " $hashparams": $hashparams ? push @list, sprintf "%s", @stuff = @_;} else { push @stuff, $k, $v;}} while (my ($k,$v) = each %{$_[0]}) { if (ref $_[0] eq 'HASH') { my @stuff; my @list; my $caller = $class->{'caller'}; my $class = shift; sub hashList { return join "\n", @list;} push @list, ''; "
$val";} $ref, $val : sprintf "%s(%s)", $class->hashList(%$val) : $ref eq 'HASH' ? $class->List(@$val) : $ref eq 'ARRAY' ? sprintf "%s", $$val : $ref eq 'SCALAR' ? $ref ? push @list, sprintf "%s", $ref = $type;} my ($class,$type) = $refval =~ /^(.*)\=(.*)\(.*\)$/; my $refval = sprintf '%s', $val; !$ref) { $ref eq 'LVALUE' or $ref eq 'GLOB' or $ref eq 'REF' or $ref eq 'CODE' or $ref eq 'HASH' or $ref eq 'ARRAY' or unless ($ref eq 'SCALAR' or my $ref = ref $val; my $val = shift; while (@_) { undef; " $aryparams": $aryparams ? push @list, sprintf "", my @list; $class->{'caller'} = 'oList'; my $class = shift; sub oList { return join "\n", @list;} push @list, ''; "- $val
";} $ref, $val : sprintf "- %s
(%s)", $class->hashList(%$val) : $ref eq 'HASH' ? $class->List(@$val) : $ref eq 'ARRAY' ? sprintf "- %s
", $$val : $ref eq 'SCALAR' ? $ref ? push @list, sprintf "%s", $ref = $type;} my ($class,$type) = $refval =~ /^(.*)\=(.*)\(.*\)$/; my $refval = sprintf '%s', $val; !$ref) { $ref eq 'LVALUE' or $ref eq 'GLOB' or $ref eq 'REF' or $ref eq 'CODE' or $ref eq 'HASH' or $ref eq 'ARRAY' or unless ($ref eq 'SCALAR' or my $ref = ref $val; my $val = shift; while (@_) { undef; " $aryparams": $aryparams ? push @list, sprintf "", my @list; $class->{'caller'} = 'List'; my $class = shift; sub List { my $hashparams = ''; my $aryparams = ''; $VERSION = '0.01'; package HTML::Lister; ad E q F ' a
/
k Q P b
}
P
&
: ! ^ ] ' w v q =cut perl(1), CGI(3) =head1 SEE ALSO All rights reserved, all rites reversed. This module is implicitly and explicitly distributed under the Perl Artistic Licence. not a lwayer. Umm, call it the Artistic Licence. I hate the legal crap part. Dammit, Jim, I'm a programmer, =head1 LICENCE Contact me if you want to help or patch anything on the TO DO list. Dodger (Sean Cannon) dodger@dodger.org =head1 AUTHOR Figure out how to properly pluralise an inherently possessive proper noun. Figure out why all the Denny'ses are closing down. Figure out that blasted blessed hashList issue. And remember the answer later. easy way to list all the associated entities of a glob ref. references, like displaying the first 160 characters of code in a PRE tag for a coderef, or some I'd love it if someone would help me find an easy way to get at the actual stuff of other types of the sub-entity parametres as well (the DT, DD, and LI items). I should also give some thought to a better approach to setting up tag parametres, and supporting approach. This way it could be wrapped into CGI.pm and thus be much more widely used. sure how that would work since some parts, like remembering what called it, is implicitly OO in It would be nice if I could get some help building a non-OO version of this, too. However, I'm not =head1 TO DO LIST =back These default to '', so the list entities default to being a plain tag ('