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