In message <[EMAIL PROTECTED]>,
    "=?iso-8859-1?q?Jonathan=20E.=20Paton?=" writes:

: #!/usr/bin/perl -w
: 
: $j++;
: 
: while (<>) {
:     $line{$.} = $_;
:     delete $line{$j++} if ($. == 2 * $j);
: }
: 
: print $line{$j};

A hash is an associative array and, thus, isn't kosher for the problem
as stated.

Greg
  • ... Ian Phillipps
  • ... Yanick
  • ... Greg Bacon
    • ... Michael G Schwern
      • ... Dmitry Kohmanyuk Дмитрий Кохманюк
        • ... Greg Bacon
          • ... ianb
          • ... Ian Phillipps
            • ... Jonathan E. Paton
              • ... Greg Bacon
              • ... Jonathan E. Paton
              • ... Jonathan E. Paton
              • ... Ian Phillipps
          • ... Keith C. Ivey
            • ... Greg Bacon
              • ... Vladi Belperchinov-Shabanski
    • ... Vladi Belperchinov-Shabanski
  • ... Newton, Philip
  • ... Santa Claus
  • ... Andrew . Savige

Reply via email to