Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
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 meditating upon the Monastery: (6)
As of 2015-07-31 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls