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

Re: Faulty Control Structures?

by BrowserUk (Pope)
on Jan 29, 2008 at 06:49 UTC ( #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
Node Status?
node history
Node Type: note [id://664855]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-12-21 22:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (108 votes), past polls