coder57,
First off, just out of curiosity, do you also post under the user name
coder45? The reason I ask is that your usernames are similar, and
coder45 asked many questions along the same lines as this one. Secondly if you read the
WWW::Mechanize documentation you would find:
"Please note that Mech does NOT support JavaScript. Please check the FAQ in WWW::Mechanize::FAQ for more."
You claim that this is your site, as such you have made it a little more difficult to automate publishing. I know that some people use JavaScript for such things to make it more difficult for people to automate posting to their sites. Since you say it is your site, you may not have too much trouble writing a Perl work around to emulate your JavaScript code you have chosen to use. You say:
"and there are 3 pages, I would like to edit the articles on the first page with the same text in $text, and the the next three articles on the next page with the text in $text2, and the next three articles on the last page with $text3"
To me this does not make sense, why would each page have three articles that contain exactly the same text? Also you have the line
use Data::Dumper; but you don't use it in your code that you have posted.
Martin
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.