All pastes #18418 Raw Edit

Mine

public text v1 · immutable
#18418 ·published 2005-07-25 01:29 UTC
rendered paste body
#!/usr/bin/perl

use strict;
use URI::URL;
use URI::WithBase;

my $str = "http://www.techweb.com/wire/ebiz/166401941";
my $url = URI::WithBase->new($str);
my $base = $url->base;

print "\n -- has base: $base\n";



this prints :    -- has base:

Why don't I get a base URL?