Ravi Malghan wrote: > Hi: I have web page built using perl cgi. Generated page has the > following element > <div id="userName" style="display: none;" name="userName"> admin > </div> > Within the perl script is there a way to access the value of the > element userName and assign it to a variable? Something along the > lines > $currentUser = <get value of the the #userName element>;
If I understand you correctly, you want to fetch and/or parse a web page. Take a look at LWP::UserAgent and HTML::Tree, respectively. HTH, David -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/