Fortran::F90Namelist::Group

Parse F90 namelist groups and export in different formats
Download

Fortran::F90Namelist::Group Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Wolfgang Dobler
  • Publisher web site:
  • http://search.cpan.org/~wdobler/

Fortran::F90Namelist::Group Tags


Fortran::F90Namelist::Group Description

Parse F90 namelist groups and export in different formats Fortran::F90Namelist::Group is a Perl module to parse F90 namelist groups and export in different formats.SYNOPSIS use Fortran::F90Namelist::Group; my $nlgrp = Fortran::F90Namelist::Group->new() or die "Couldn't get object "; $nlgrp->parse( 't/files/some_lists.nml'); # Read namelist group from file handle open(my $fh , "< t/files/some_lists.nml") or die "Couldn't get file handle "; $nlgrp->parse(file => $fh); # or open(NLGROUP , "< t/files/some_lists.nml") or die "Couldn't get file handle "; $nlgrp->parse(file => *NLGROUP); # Print names of all namelists in file `start.in' $nlgrp->parse(file => 't/files/start.in') or die "Couldn't parse "; print join(" ", $nlgrp->names), " ";Extract or merge namelists from group and return Fortran::F90Namelist object: my $nl_1 = $nlgrp->first(); # Extract first namelist from group my $nl_3 = $nlgrp->nth(3); # Extract 4th namelist from group my $nl_all = $nlgrp->flatten(); # Flatten all namelists into oneWrite namelist group: # Write namelist group in F90 namelist format print $nlgrp->output(); # Write namelist as IDL structure print $nlgrp->output(format => 'idl');Fortran::F90Namelist::Group is a module for parsing Fortran90 namelist groups into an internal format based on Fortran::F90Namelist, and re-exporting in different formats. Parsing is done by Fortran::F90Namelist, see the documentation of that module for more details. Requirements: · Perl


Fortran::F90Namelist::Group Related Software