Subject: | Having to pass ref to every call |
Why do I have to pass $ref to *each* call:
my $uparse = new URI::ParseSearchString();
my $ref =
'http://www.google.com/search?hl=en&q=a+simple+test&btnG=Google+Search';
my $query_terms = $uparse->se_term( $ref );
my $canonical = $uparse->se_name( $ref );
my $hostname = $uparse->se_host( $ref );
It would be far neater to do this:
my $uparse = URI::ParseSearchString->new(ref =>
'http://www.google.com/search?hl=en&q=a+simple+test&btnG=Google+Search');
my $query_terms = $uparse->se_term();
my $canonical = $uparse->se_name();
my $hostname = $uparse->se_host();