in reply to for loop

A few points:

-- Abigail

Replies are listed 'Best First'.
Re: for loop
by CharlesClarkson (Curate) on Jun 22, 2001 at 08:01 UTC
    open my $file => "<", $ipfile or die "Open: $!";

    I recognize the open above, but am curious why you're using the => instead of the comma. I realize they are synonymous. I was just curious why you chose that form over:

    open my $file, '<', $ipfile or die "Open: $!";

    Charles K. Clarkson

    Curiosity was framed. Ignorance killed the cat.
      To make the first argument stand out more, visually separating it from the other arguments. I do that a lot, with functions like push, substr, sprintf, flock, etc.

      -- Abigail

Re: Re: for loop
by Anonymous Monk on Jun 22, 2001 at 14:03 UTC
    The } was a typo. Thanks for clearing that up for me I hit myself on the head when I realized what I did.