Help for this page

Select Code to Download


  1. or download this
    my $output = new OUTFILE ('>C:\Program Files\cron\Cruise Ships\ship_da
    +ta.csv');
    
  2. or download this
    my $output = OUTFILE->new('>C:\Program Files\cron\Cruise Ships\ship_da
    +ta.csv');
    
  3. or download this
    open(my $output, '>', 'C:\\Program Files\\cron\\Cruise Ships\\ship_dat
    +a.csv');
    
  4. or download this
    use IO::Handle qw( );
    
    ...
    ...
    
    OUTFILE->print ( join(',', @$row), "\n");
    
  5. or download this
    my $out_fn = 'C:\\Program Files\\cron\\Cruise Ships\\ship_data.csv';
    open(my $out_fh, '>', $out_fn)
    ...
    ...
    
    $out_fh->print ( join(',', @$row), "\n");