ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Net-FCP/eg/fetch1
Revision: 1.3
Committed: Tue Sep 9 06:13:20 2003 UTC (23 years ago) by root
Branch: MAIN
Changes since 1.2: +1 -1 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.1 #!/usr/bin/perl
2    
3 root 1.3 use Net::FCP qw(event=Event);
4 root 1.1
5     # fetch a single (small) keyand output it to stdout
6    
7     my $fcp = new Net::FCP;
8    
9 root 1.2 my ($meta, $data) = @{ $fcp->client_get ("freenet:$ARGV[0]", $ARGV[1]) };
10 root 1.1
11 root 1.2 use Data::Dumper;
12     print Dumper $meta;
13 root 1.1 print "=============================================================================\n";
14     print $data;
15    
16