Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
Update README, use print instead of say
Browse files Browse the repository at this point in the history
  • Loading branch information
GlitchMr committed Aug 1, 2012
1 parent 0630a1e commit 5dd8630
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion perl6_doc/README.md
Expand Up @@ -3,8 +3,9 @@ Perl 6 documentation fetcher and parser for DuckDuckGo
# Dependencies # Dependencies


* wget * wget
* Perl v5.6 * Perl v5.10
* CPAN modules: * CPAN modules:
* `strictures` * `strictures`
* `HTML::Entities`
* `HTML::Parser` * `HTML::Parser`
* `URI::Escape` * `URI::Escape`
10 changes: 5 additions & 5 deletions perl6_doc/parse.pl
@@ -1,4 +1,4 @@
use 5.006; use 5.010;
use strictures 1; use strictures 1;
use autodie; use autodie;
use Encode; use Encode;
Expand All @@ -17,7 +17,7 @@ (_)
} }


sub duck_line { sub duck_line {
join( "\t", @_ ) . "\n"; join "\t", @_;
} }


my %functions; my %functions;
Expand Down Expand Up @@ -99,7 +99,7 @@ sub duck_line {
. duck_escape( $definition{prototype} ) . duck_escape( $definition{prototype} )
. '</pre></code>' . '</pre></code>'
: q[]; : q[];
print duck_line( say duck_line(
"$definition{class}.$function", "$definition{class}.$function",
'A', 'A',
q[], q[],
Expand All @@ -119,11 +119,11 @@ sub duck_line {
} }
if ( @definitions == 1 ) { if ( @definitions == 1 ) {
my %definition = %{ $definitions[0] }; my %definition = %{ $definitions[0] };
print duck_line( $function, 'R', "$definition{class}.$function", say duck_line( $function, 'R', "$definition{class}.$function",
q[], q[], q[], q[], q[], q[], q[], q[], q[], ); q[], q[], q[], q[], q[], q[], q[], q[], q[], );
} }
else { else {
print duck_line( $function, 'D', q[], q[], q[], q[], q[], q[], q[], say duck_line( $function, 'D', q[], q[], q[], q[], q[], q[], q[],
join( '\n', map {"[[$_->{class}.$function]]"} @definitions ), join( '\n', map {"[[$_->{class}.$function]]"} @definitions ),
q[], q[], q[], ); q[], q[], q[], );
} }
Expand Down

0 comments on commit 5dd8630

Please sign in to comment.