helpme123 has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I need to be able to get a page from a url variable using mechanize, but then store the contents of $mech->content into a variable. Then the script needs to print a specific line and specfic characters of that line into a variable. I am trying to store a fieldname as a variable, but the fieldname keeps on changing so i cant just use a static one. So the script needs to find the field name and record it. Any help if appreciated, Many thanks in advance, helpme123 Robbie

Replies are listed 'Best First'.
Re: Perl Mechanize Help
by stevieb (Canon) on Sep 23, 2015 at 16:33 UTC

    Welcome to the Monastery, helpme123!

    Please show us the relevant code that you've got, a sample of your input data (that includes the field(s) you want), and a sample of what you expect the output to be. All three of those should be wrapped in <code></code> tags.

    -stevieb

Re: Perl Mechanize Help
by Anonymous Monk on Sep 23, 2015 at 22:15 UTC