in reply to How to modify the actual arguments

If that's your whole program, I suspect you mean $ARGV[0] and $ARGV[1], which refer to the command-line arguments to your program, and not $1 and $2, which refer to the last two captures from a regular expression match. Making that change, your program doesn't give an error.

Replies are listed 'Best First'.
Re^2: How to modify the actual arguments
by perladdict (Chaplain) on Jun 17, 2006 at 20:25 UTC
    HI Monk, thankx for suggation,i am trying to modify the constants in this program,so,we can't use the subscript on constant items.