Sylk - Perl extension for generating Sylk files
use MMM::Sylk; my $slk = new MMM::Sylk; # with static first line my $slk = new MMM::Sylk( { FistRecord => [ "head1", "head2", "head3" ] } ); #push a record (1) $slk->push_record( "1", "2", "3" ); #(data are copied) #push a record (2) # (record is stored as a reference to external data) # my @record = ( 1 ,2 ,3 4 ); $slk->push_record( \@record ); # or $slk->push_record( [ "1", "2", "3" ] ); #clear all data $slk->clear(); #print to file handler $slk->print( \*STDOUT ); #get Sylk content as string my $str = $slk->as_string();
The comments above will suffice.
$EOL eol sequence (default "\n")
Max Muzi <maxim@comm2000.it>
perl.
To install MMM::Sylk, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MMM::Sylk
CPAN shell
perl -MCPAN -e shell install MMM::Sylk
For more information on module installation, please visit the detailed CPAN module installation guide.