in reply to Can't remove the the duplicate element when it's the last one in the array

I was using qw{1, 1} to construct the array,
You do know that using qw{1, 1} triggers a warning, don't you?
  • Comment on Re: Can't remove the the duplicate element when it's the last one in the array
  • Download Code

Replies are listed 'Best First'.
Re^2: Can't remove the the duplicate element when it's the last one in the array
by graff (Chancellor) on Dec 18, 2009 at 21:12 UTC
    If littlehorse didn't know about the warning, it's most likely because he also doesn't know that this line should have been included somewhere near the top of script file:
    use warnings;
Re^2: Can't remove the the duplicate element when it's the last one in the array
by littlehorse (Sexton) on Dec 20, 2009 at 07:36 UTC
    I don't know that will trigger a warning, I'm new to Perl.

    I forget to use the -w switch when I use the Perl interpreter to execute the script. I will let that switch on next time, thanks.