Fortran::F90Format

Fortran::F90Format is a read and write data using FORTRAN 90 I/0 formatting.
Download

Fortran::F90Format Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Victor Marcelo Santillan
  • Publisher web site:
  • http://search.cpan.org/~vms/Fortran-F90Format-0.40/lib/Fortran/F90Format.pm

Fortran::F90Format Tags


Fortran::F90Format Description

Fortran::F90Format is a read and write data using FORTRAN 90 I/0 formatting. Fortran::F90Format is a read and write data using FORTRAN 90 I/0 formatting.SYNOPSYSuse Fortran::F90Format;my $fmt = Fortran::F90Format->new(fmt=>"1x,a4,1x,i4,4(1x,i2)1x,f5.2");my $input_string = ' STRG 1234 1 2 3 4 5 1000001.00';my @input_values = $fmt->read( $input_string );my @output_values = @input_values;my $output_string = $fmt->write(@output_values);print $output_string; # prints: " STRG 1234 1 2 3 4 5.00n"F90Format implements basic I/O formatting based on the Digital FORTRAN 90 I/O formatting specifications (April 1997). F90Format provides a consistent way of reading and writing fixed length fields in tabular data, by using the same syntax for reading and writing. The same task in Perl requires synchronizing the format strings in sprintf and pack/unpack functions. Although this is possible, sprintf sometimes exceeds the length of the desired field. This 'feature' of sprintf combined with the fact that pack/unpack never go beyond the desired field width may eventually result in corrupting the data table. Requirements: · Perl


Fortran::F90Format Related Software