in reply to Question about WWW::Mechanize

You need an encoding, like
use URI::Escape; my $filename = URI::Escape::uri_escape( $link->url_abs->path ); # /pdf/100004/_20090326.pdf # %2Fpdf%2F100004%2F_20090326.pdf

Replies are listed 'Best First'.
Re^2: Question about WWW::Mechanize
by palsy017 (Initiate) on Mar 30, 2009 at 18:47 UTC
    use URI::Escape; my $filename = URI::Escape::uri_escape( $link->url_abs->path );
    This line of PERL (listed above) works, but I need to make a change. The PDFs are saving with the encoding in the file name. How could this be filtered so that the end result looks like A, not B?

    A. 100004_20090326.pdf

    B. %2Fpdf%2F100004%2F_20090326.pdf

    Thanks alot!!!