Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Re-dimensioning an HTML table with Perl ?

by LanX (Saint)
on Apr 25, 2017 at 17:36 UTC ( [id://1188885]=note: print w/replies, xml ) Need Help??


in reply to Re-dimensioning an HTML table with Perl ?

> "re-dimension" ... an HTML table.

if it's only one table better do it manually!

For a recurring task you'd need a proper HTML parser...

If you really prefer to code it for just one table:

  • identify and cut the table by hand
  • try to split on each <tr to get the rows
  • and than the row on each <td to get the columns
  • create an AOA (array of arrays) representing your table
  • print a join of those rows and columns you need

NOTE: This is fragile and only suitable for half-automatic use.

I won't code this for you... do it manually.

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

Replies are listed 'Best First'.
Re^2: Re-dimensioning an HTML table with Perl ?
by Anonymous Monk on Apr 25, 2017 at 17:42 UTC
    You remind me of that "How To Do It" sketch by Monty Python.

    "To play flute you simply hold down these keys, and blow here." xD

    "I won't code this for you."

    But you will expect XP for your "contribution." XP for xD

Re^2: Re-dimensioning an HTML table with Perl ?
by Anonymous Monk on Apr 25, 2017 at 17:39 UTC
    "You're fired."
      Probably the best reply of the bunch. Unlike the others, if you're not going to answer the question, at least make an effort at an alternative answer. ;-)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1188885]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2024-04-20 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found