Help for this page

Select Code to Download


  1. or download this
    my $pathstr = join( '', $outputfiles, $invoice_data_ref{actual_invoice
    +_id} );
    my @cmdargs = ( 'java', '-jar', '/var/ww/helper_code/svg2pdf.jar',
    ...
    print join( ' ', 'command_str:', @cmdargs ), "\n";  # optional - just 
    +to check
    
    $report_failure = system( @cmdargs );
    
  2. or download this
    my @svg_names = ( qw/master01 master02 .../; # or whatever those names
    + are
    # … create those files ...
    ...
    my @cmdargs = qw/java -jar /var/ww/helper_code/svg2pdf.jar/;
    push @cmdargs, "$pathstr/$_.svg" for ( @svg_names );
    push @cmdargs, "$pathstr/master.pdf";
    
  3. or download this
    open( SH, '|-', '/bin/sh' ) or die "Can't open a shell: $!";
    for my $iterator ( @whatever_set ) {
        print SH "command line…\n"
    }
    close SH;