Subject: | parse_page failing: $page gets nothing from $res->content() |
For Version 1.09, I'm getting a message of:
Use of uninitialized value in pattern match (m//) at
C:/Perl/site/lib/Mail/Webmail/Gmail.pm
from the line in 'sub parse_page' of:
while ( $page =~ /D\((.*?)\);\n/mgs )
Apparently res->content() has content of:
<script>top.js.P(window,["sr","1",2,"","0",0,[]
,,0,0,0,,,0,[]
,[]
]
);var loaded=true;</script>
such that populating $page via:
$res->content() =~ /<!--(.*)\/\/-->/s;
$page = $1;
is failing. Perhaps Gmail is not returning as much useful information
as it used to? (This used to work fine, though I haven't used this
function for a while. Thus I don't know the exact date that this
function stopped working.)
Thanks,
Brig