in reply to Remove from List

Change:
if (@ARGV = 2){

to:

if (@ARGV == 2){

Your code assigns to the array.

I determined this by checking your open with die (Tip #7 from the Basic debugging checklist).

Replies are listed 'Best First'.
Re^2: Remove from List
by PyrexKidd (Monk) on Aug 23, 2010 at 21:50 UTC

    Oh wow. Thank you guys. That was WAY too easy.

    Thanks for the assist. Should have seen that.

    now I'm kicking myself for the n00b m0ve.

      No problem: I come from Pascal, and I make that mistake about once a week. And I've been using perl for more than 6 years now...

      The real error is not to check the result of open and, in general, of all I/O operations, but that I make once a week, too :).

      Rule One: "Do not act incautiously when confronting a little bald wrinkly smiling man."

        Upgrade to Perl 5.10.1 at least, or install it from the CPAN, but either way use autodie to prevent that mistake.