Re: DocumentHTML ?



"~greg" <g_m@xxxxxxxxxxxxxxxxxx> wrote in
news:g--dnSqFTul-4XnYnZ2dnUVZ_oannZ2d@xxxxxxxxxxx:

When I saw that Mr Unur was telling me to use
Win32-IE-Mechanize instead, - I started dimming out.

When next I saw him telling me to "use warnings",
I started blanking out.

And when, finally, I saw that he'd added "use warnings" to my
original code -- but ---it seemed to me, when I skimmed over it, with
these old eyes, --- nothing else ..!..

Gentlemen, I'm old.

I glanced over the rest of the script and didn't notice
that any other changes had been made than the addition
of "use warnings".

I thought Mr Unur had "middle-posted" and left,
after telling me to use warnings.

As I wrote that message, I replaced your script with the copy-pasted
version of my script but gave no indication of the fact that I had changed
a single line in it.

That's my fault.

$IEWindow->Document->documentElement->{outerHTML};
is ideed exactly what I was asking for. It works.
(How ever did you find it?)

I wondered how Win32::IE::Mechanize did it and looked at its source code.

Microsoft has documentation on Internet.Application at msdn.microsoft.com.
The whole thing is really messy and I am not sure if you will able to do
better than Win32::IE::Mechanize (and if you are, I am sure we would all
appreciate your contributions).

On the other hand, that module helped me achieve a lot recently despite all
the warnings on CPAN. I am more worried about modules that don't tell me
their shortcomings up front.

Sinan




.



Relevant Pages

  • Re: A script to flag commonly misused words
    ... is preferable in general as it allows you to scope warnings. ... use strict; ... I first wrote a script to extract the words to flag from your ... I discovered that at least one of the expressions you ...
    (comp.lang.perl.misc)
  • Re: [PATCH] Speed up "make headers_*"
    ... 'use strict' and 'use warnings' is recommended. ... The parentheses are not needed for most of the built-in functions. ... More or less the same comments would apply to the next script as well. ...
    (Linux-Kernel)
  • Re: crisis Perl
    ... As to writing good code to begin with, ... the top of the script. ... the "use warnings;" line won't actually change ... recommended declaring variables IN AS SMALL AS SCOPE AS POSSIBLE. ...
    (comp.lang.perl.misc)
  • Re: Regular Expression and file editing.
    ... Goksie wrote: ... If i run the script, the changes could not be effected bcos the files is ... use warnings; ... use strict; ...
    (perl.beginners)
  • Re: Passing vars to a "require"d script
    ... > require'd script didn't seem to pull in the form data, ... >> use strict; ... >> use warnings; # main program ...
    (comp.lang.perl.misc)