Show
Ignore:
Timestamp:
07/12/08 19:43:28 (4 months ago)
Author:
yusukebe
Message:

fix pod

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/WWW-YourFileHost/trunk/lib/WWW/YourFileHost.pm

    r12377 r15701  
    9191    use LWP::UserAgent; 
    9292    use WWW::YourFileHost; 
     93    use Perl6::Say; 
     94 
    9395    my $url = "http://www.yourfilehost.com/media.php?cat=video&file=hoge.wmv"; 
    9496    my $ua  = LWP::UserAgent->new( agent => "WWW::YourFileHost" ); 
    95     $ua->cookie_jar( 
    96         HTTP::Cookies->new( 
    97             file     => '', 
    98             autosave => 1, 
    99         ) 
    100     ); 
    101     my $yourfilehost = WWW::YourFileHost->new( url => $url ); 
    102     print $yourfilehost->photo . "\n"; 
    103     print $yourfilehost->video_id . "\n"; 
    104     print $yourfilehost->embed . "\n"; 
     97    $ua->cookie_jar( HTTP::Cookies->new ); 
     98    my $yourfilehost = WWW::YourFileHost->new( url => $url , ua => $ua ); 
     99    say $yourfilehost->photo; 
     100    say $yourfilehost->video_id; 
     101    say $yourfilehost->embed; 
    105102 
    106103