Help for this page

Select Code to Download


  1. or download this
    my $string = $q->param( 'string' );
    
    ...
    print $q->header( "text/plain" );
    print while <PIPE>;
    close PIPE;
    
  2. or download this
    my $pid = open PIPE, "-|";
    die "Cannot fork $!" unless defined $pid;
    ...
    unless ( $pid ) {
        exec FIGLET, $string or die "Cannot open pipe to figlet: $!";
    }