linux-admin.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "A. R. Vener" <salt@aero-vision.com>
To: linux-admin@vger.kernel.org
Subject: Re: Stupid programming question
Date: Wed, 19 May 2004 12:45:38 -0400	[thread overview]
Message-ID: <20040519124538.B15801@cougar.aero-vision.com> (raw)
In-Reply-To: <A91AB3D20F6C4C4A96BBBF79212823431179A2@misout7msgusr05.itservices.sbc.com>; from jj2195@sbc.com on Wed, May 19, 2004 at 01:22:04PM -0400

#!/usr/bin/perl

open(FILE1, "file1") or die  "cannot open file 1\n";
open(FILE2, "file2") or die  "cannot open file 2\n";

while ($n1 = <FILE1>  and $n2 = <FILE2>)
{
chomp $n1;
chomp $n2;
$product = $n1 * $n2;
print "$product\n";
}
}


--
Rudy

  reply	other threads:[~2004-05-19 16:45 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-19 17:22 Stupid programming question JULIAN, JOHN C (AIT)
2004-05-19 16:45 ` A. R. Vener [this message]
  -- strict thread matches above, loose matches on Subject: below --
2004-05-19 17:06 Michael French
2004-05-19 22:03 ` Russell Evans

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040519124538.B15801@cougar.aero-vision.com \
    --to=salt@aero-vision.com \
    --cc=linux-admin@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).