Help for this page

Select Code to Download


  1. or download this
    for ($i = 0; $i < @tablea; $i++) {
    
  2. or download this
    for my $i (0..$#tablea) {
    
  3. or download this
    for my $line(@tablea) {
    
  4. or download this
        system("wc $mcpFile > crap");
        open(TABLEB,'crap');
    ...
        $numObs = $count - 9;
        close(TABLEB);
        unlink('crap');
    
  5. or download this
    my $count = 0;
    open my $IN, "<", $mcpFile or die "unable to open $mcpFile $!";
    $count++ while <$IN>;
    close $IN;
    
  6. or download this
    my $wc_output = `wc -l $mcpFile`;
    
  7. or download this
        $numLines = int($numObs/6);
        $remainder = $numObs - ($numLines*6);
    
  8. or download this
    my $remainder = $numObs % 6;
    
  9. or download this
    open(TABLEB, $mcpFile);
    
  10. or download this
    @tableb = <TABLEB>;
    
  11. or download this
    while (my $line = <TABLEB>) {
    
  12. or download this
    ($PDE,$year,$month,$day,$hour,$minute,$second,$eqlat,$eqlong,$eqdepth,
    +$mag) = (split /\s+/,$tableb[$j])[0,1,2,3,4,5,6,7,8,9,11];
    
  13. or download this
    my ($PDE,$year,$month,$day,$hour,$minute,$second,$eqlat,$eqlong,$eqdep
    +th,$mag) = (split /\s+/,$tableb[$j])[0..9,11];
    
  14. or download this
    my ($PDE,$year,$month,$day,$hour,$minute,$second,$eqlat,$eqlong,$eqdep
    +th,undef, $mag) = split /\s+/,$tableb[$j];
    
  15. or download this
    for ($k = 0; $k < @tableb; $k++) {
    
  16. or download this
    use strict;
    use warnings;