Changeset 18397 for lang/perl/Net-DMM/trunk/lib/Net/DMM.pm
- Timestamp:
- 08/28/08 18:18:23 (4 months ago)
- Files:
-
- 1 modified
-
lang/perl/Net-DMM/trunk/lib/Net/DMM.pm (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/Net-DMM/trunk/lib/Net/DMM.pm
r18142 r18397 12 12 use URI; 13 13 14 our $VERSION = '0.0. 2';14 our $VERSION = '0.0.3'; 15 15 16 16 sub new { … … 38 38 croak "area param is invalid. set 'com' or 'co.jp'." 39 39 if !$opt->{area} || $opt->{area} !~ /^(?:com|co\.jp)$/; 40 $self->{svr} = 'www' unless $self->{svr}; 40 41 $self->{sort} = 'rank_asc' unless $self->{sort}; 41 42 $self->{limit} = 10 unless $self->{limit}; … … 52 53 my $opt = shift; 53 54 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/"); 55 56 $uri->query_form( 56 57 category => $opt->{category} || $self->{category}, … … 81 82 =head1 VERSION 82 83 83 This document describes Net::DMM version 0.0. 284 This document describes Net::DMM version 0.0.3 84 85 85 86
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)