perladdict has asked for the wisdom of the Perl Monks concerning the following question:
Hi Monks
I am trying to modify the nameless farmal arguments to actual arguments ,the above code is giving an error as "modification to readonly value attempted".so,suggest me so,that i can trap my mistake.#!/user/bin/perl -w upper($1,$2); sub upper { for(@_) { tr/a-z/A-Z/; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How to modify the actual arguments
by Zaxo (Archbishop) on Jun 17, 2006 at 19:01 UTC | |
Re: How to modify the actual arguments
by GrandFather (Saint) on Jun 17, 2006 at 19:07 UTC | |
Re: How to modify the actual arguments
by sgifford (Prior) on Jun 17, 2006 at 19:44 UTC | |
by perladdict (Chaplain) on Jun 17, 2006 at 20:25 UTC |
Back to
Seekers of Perl Wisdom