use LWP; # or is that LWP::Simple ??? package record; my $url = "http://www.perlmonks.org"; my $content = get( $url ); #### package record; use LWP; my $url = "http://www.perlmonks.org"; my $content = get( $url ); #### package record; use LWP::Simple; my $url = "http://www.perlmonks.org"; my $content = get( $url ); #### # we're in package main by default; any unqualified subroutine reference # is understood to refer to a subroutine in the "main" namespace use LWP::Simple; #main::get is now an alias to LWP::Simple::get package record; my $url = "http://www.perlmonks.org"; my $content = record::get($url); # because that's the package declared above