Help for this page

Select Code to Download


  1. or download this
    sub fix_URL {
        use URI;
    ...
        print "input is: $in\n";
        print "fixed url is: $url\n";
    }
    
  2. or download this
    perl> fix_URL 'tp://www.cnn.com'
    input is: tp://www.cnn.com
    fixed url is: http://www.cnn.com
    perl>