Hi all,

I noticed strange behavior with die;
Here is snippet:

use strict;
use warnings;
use WWW::Mechanize;

my $mech = WWW::Mechanize->new();
$mech->agent_alias('Windows IE 6');
$mech->get( 'http://www.zoznam.sk' );
for my $link ( $mech->links() ) {
        print $link->url_abs, "\n";
}

        
This works quite OK, but when I put die; at the end of script it
throws me an error:
Can't locate URI/javascript.pm in @INC (@INC contains: c:/Perl/lib c:/Perl/site/
lib .) at (eval 19) line 3.
        ...propagated at myscript.pl line 10.

at line 10 is die;

Whats going here ?

Also exist a way how to get normal URL via javascript?
Lets say I have:

<a href="javascript:nWindow=window.open('/test.html','test',
        'toolbar=no,width=600,height=500'); void('');">test</a>

I'd like to get abs_url of this one.

Thanks.





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to