Changeset 18397 for lang/perl

Show
Ignore:
Timestamp:
08/28/08 18:18:23 (3 months ago)
Author:
bayashi
Message:

add svn option

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Net-DMM/trunk/lib/Net/DMM.pm

    r18142 r18397  
    1212use URI; 
    1313 
    14 our $VERSION = '0.0.2'; 
     14our $VERSION = '0.0.3'; 
    1515 
    1616sub new { 
     
    3838        croak "area param is invalid. set 'com' or 'co.jp'." 
    3939                if !$opt->{area} || $opt->{area} !~ /^(?:com|co\.jp)$/; 
     40        $self->{svr} = 'www' unless $self->{svr}; 
    4041        $self->{sort} = 'rank_asc' unless $self->{sort}; 
    4142        $self->{limit} = 10 unless $self->{limit}; 
     
    5253        my $opt  = shift; 
    5354        my $searchstr = $opt->{searchstr} || $self->{searchstr}; 
    54         my $uri = URI->new("http://www.dmm.".$opt->{area}."/search/"); 
     55        my $uri = URI->new("http://".$opt->{svr}.".dmm.".$opt->{area}."/search/"); 
    5556        $uri->query_form( 
    5657                category  => $opt->{category} || $self->{category}, 
     
    8182=head1 VERSION 
    8283 
    83 This document describes Net::DMM version 0.0.2 
     84This document describes Net::DMM version 0.0.3 
    8485 
    8586