Ask a Question related to PERL Modules, Design and Development.
-
Eric Olson #1
Nested hash conversion to HTML
Hello list...
At my company, we are looking for a module that would help out with
converting multiple layer nested hashes into HTML format. We want to
try and stay away from templates as much as possible so
Template::Toolkit is out ( for now ). So if anyone can point in the
right direction, we would be very grateful.
Thanks,
Eric
Eric Olson Guest
-
Multiple PDF, PPT, DOC to html or text conversion
Hello, I have a asp.net application storing pdf files and word documents into db. The problem appears when trying to show a preview of a document... -
MD5 Hash on HTML Form
Hello, I have a static html web form that is processed by a VBScript on a server. The VBScript sends the information a user submitted to a... -
conversion to html missing line returns
I'm really in need of a good tool to convert documents to HTML (raw in a way). MS Word does a good job but has all their "special" coding added. I'm... -
nested HTML parsing
"Vassilis Tavoultsidis" <ixanthi@ixanthi.remove.gr> writes: That is not valid HTML. That is correct, that is what any HTML parser should... -
Dreamweaver HTML to PDF conversion (k)
Is there a way to take a simple HTML page and turn it into a PDF? So that the links work when opened? I'm using Dreamweaver MX on Mac OS 10.2.6... -
Brian McCauley #2
Re: Nested hash conversion to HTML
[email]ero@tfhs.net[/email] (Eric Olson) writes:
That it too vague a description of what you want.> At my company, we are looking for a module that would help out with
> converting multiple layer nested hashes into HTML format.
How about Data::Dumper's Dumper() (to dump the hash as plain text) and> We want to try and stay away from templates as much as possible so
> Template::Toolkit is out ( for now ). So if anyone can point in the
> right direction, we would be very grateful.
CGI's escapeHTML() (to escape any characters that are special in
HTML)?
I suspect that that is not what you wanted - but only because there
are millions of things you could want and so the chances of anyone
guessing which one you actually want is vanishingly small.
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
Brian McCauley Guest
-
Eric Olson #3
Re: Nested hash conversion to HTML
==================
Brian McCauley <nobull@mail.com> wrote in message
That it too vague a description of what you want.
How about Data::Dumper's Dumper() (to dump the hash as plain text) and
CGI's escapeHTML() (to escape any characters that are special in
HTML)?
I suspect that that is not what you wanted - but only because there
are millions of things you could want and so the chances of anyone
guessing which one you actually want is vanishingly small.
===================
Ok.. I apologize for the vague description...So.. here goes...
We have this type of hash structure in our software (It's huge but it
works for now)
$hash->{'layer1'}->{$layer1Variable}->{'layer2'}->{$layer2Variable}..etc..etc..
The whole thing is around 7 layers deep with varying information
stored at each level. Is there a way to parse this information out
into HTML without using a template function or Data::Dumper?
I appreciate all help with this.
Thanks,
Eric
Eric Olson Guest
-
Jürgen Exner #4
Re: Nested hash conversion to HTML
Eric Olson wrote:
$hash->{'layer1'}->{$layer1Variable}->{'layer2'}->{$layer2Variable}..etc..et> We have this type of hash structure in our software (It's huge but it
> works for now)
>
>
c..Pretty trivial. Just write a function/set of functions that traverses your>
> The whole thing is around 7 layers deep with varying information
> stored at each level. Is there a way to parse this information out
> into HTML without using a template function or Data::Dumper?
data tree and prints the appropriate HTML tags along with your data.
Now, how to traverse the tree (depth first or width first or maybe even a
combination) and where in this process to print which HTML code totally
depends on how _you_ want the data to be displayed.
jue
Jürgen Exner Guest
-
Eric Olson #5
Re: Nested hash conversion to HTML
"Jürgen Exner" <jurgenex@hotmail.com> wrote in message
> Pretty trivial. Just write a function/set of functions that traverses your
> data tree and prints the appropriate HTML tags along with your data.
>
> Now, how to traverse the tree (depth first or width first or maybe even a
> combination) and where in this process to print which HTML code totally
> depends on how _you_ want the data to be displayed.
>
> jue
Thanks for all the input. I hoped to find a module to do this. I'll give it a shot.
Thanks again,
Eric
Eric Olson Guest
-
510046470588-0001@t-online.de #6
Re: Nested hash conversion to HTML
[email]ero@tfhs.net[/email] (Eric Olson) writes:
not XML?> At my company, we are looking for a module that would help out with
> converting multiple layer nested hashes into HTML format.
Klaus Schilling
510046470588-0001@t-online.de Guest
-
Brian McCauley #7
Re: Nested hash conversion to HTML
[email]ero@tfhs.net[/email] (Eric Olson) writes:
That adds no information to what was in the original post. You have> Brian McCauley <nobull@mail.com> wrote in message
>>> > How about Data::Dumper's Dumper() (to dump the hash as plain text) and
> > CGI's escapeHTML() (to escape any characters that are special in
> > HTML)?
> >
> > I suspect that that is not what you wanted - but only because there
> > are millions of things you could want and so the chances of anyone
> > guessing which one you actually want is vanishingly small.
> Ok.. I apologize for the vague description...So.. here goes...
>
> We have this type of hash structure in our software (It's huge but it
> works for now)
>
> $hash->{'layer1'}->{$layer1Variable}->{'layer2'}->{$layer2Variable}..etc..etc..
>
> The whole thing is around 7 layers deep with varying information
> stored at each level. Is there a way to parse this information out
> into HTML without using a template function or Data::Dumper?
mearly explained what you meant by the term "Nested hash" and I had
had no problem with that term in the first place.
You need to take a step back and figure out what you are trying to do.> I appreciate all help with this.
If you can't manage an abstract description then perhaps example input
and output would give us some clue as to what you are thinking.
--
\\ ( )
. _\\__[oo
.__/ \\ /\@
. l___\\
# ll l\\
###LL LL\\
Brian McCauley Guest



Reply With Quote

