Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Faulty Control Structures?

by BrowserUk (Patriarch)
on Jan 29, 2008 at 06:49 UTC ( [id://664855]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %main;
    my $mfile = prompt( "Main file?" );
    ...
    
    close MAIN;
    chomp @$_ for values %main;
    
  2. or download this
    my $afile = prompt( "Annotation file?" );
    open ANNOT, '<', $afile or die "$afile: $!";
    
    open OUTPUT, '>', 'output.txt' or die $!;
    
  3. or download this
    OUTER: while( <ANNOT> ) {
        chomp;
    ...
            }
        }
    }
    
  4. or download this
        Ms------Me
                            As------Ae
    
  5. or download this
                            Ms------Me
        As------Ae
    
  6. or download this
    OUTER: while( <ANNOT> ) {
        chomp;
    ...
            print OUTPUT "$atag\t$mess";
        }
    }
    
  7. or download this
    my( $first, $lastTag ) = ( 0, '' );
    OUTER: while( <ANNOT> ) {
    ...
            print OUTPUT "$atag\t$mess";
        }
    }
    
  8. or download this
    C:\test>664760-gen > 664760.main
    C:\test>wc -l 664760.main
    ...
    
    C:\test>wc -l output.txt
     112805 output.txt
    
  9. or download this
    #! perl -slw
    use strict;
    ...
    C:\test>wc -l output.txt
     112805 output.txt
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (2)
As of 2024-04-25 06:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found