Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Fast reading and processing from a text file - Perl vs. FORTRAN

by TomDLux (Vicar)
on May 25, 2003 at 01:44 UTC ( [id://260643]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for ( @FileArray ) {
        open FILE or die $!;
    
  2. or download this
    while ( <FILE> ) {
      $in = $_
    
  3. or download this
    while ( $in = <FILE> ) {
        chomp $in
    
  4. or download this
    if ( $line =~ /^1.*?MSC.NASTRAN.*?PAGE/ ) {
        my $name = <FILE>;
    ...
        $loadname = $name if ($name !~ /^\s*$/ );
        next;
    }
    
  5. or download this
    if ( $line =~ m/^0\s+(\S*?)\s+(SUBCASE)|(SUBCOM)|(SYM\b)|(SYMCOM)|(REP
    +CASE)/ ) {
        $loadname = $1 if $1;
        $type = $+;
        next;
    }
    
  6. or download this
    my $failure_indices_line = "F A I L U R E ....... ( Q U A D )";
    ...
    
    if ( $in eq $failure_indices_line ) {
    
  7. or download this
    if ( $in =~ /[\d.]+/ ) {
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://260643]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (4)
As of 2024-03-19 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found