dkusters has asked for the wisdom of the Perl Monks concerning the following question:
It is called with the following code:sub GetSSNameFromFile( $\$\$ ) { my $s_InputFile = $_[ 0 ]; my $rs_OutputFile = $_[ 1 ]; my $rs_RecurseLabel = $_[ 2 ]; my $s_SSDataDir = "$ENV{ SSDIR }\\data"; ++$$rs_RecurseLabel; ...
where all parameters passed in are standard my scalars. When I run the code, I get the following error:GetSSNameFromFile( $sFile, $sRealName, $sRecurseLabel );
The line specified is the unary increment on $rs_RecurseLabel. What exactly is a read-only value in perl and why is $rs_RecurseLabel one? What am I doing wrong and how do I fix it?Modification of a read-only value attempted at D:\dlkusters\vsstools\v +sstools/VSS/Utils.pm line 102.
I bow at the monastery alter for guidance...
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
(tye)Re: References, Prototypes, and read-only values
by tye (Sage) on Feb 28, 2001 at 01:09 UTC | |
|
Re: References, Prototypes, and read-only values
by arturo (Vicar) on Feb 28, 2001 at 01:11 UTC | |
|
(ichimunki) re: References, Prototypes, and read-only values
by ichimunki (Priest) on Feb 28, 2001 at 01:23 UTC | |
|
Re: References, Prototypes, and read-only values
by dkusters (Initiate) on Feb 28, 2001 at 02:44 UTC | |
by bbfu (Curate) on Feb 28, 2001 at 02:58 UTC | |
|
Re: References, Prototypes, and read-only values
by AgentM (Curate) on Feb 28, 2001 at 01:13 UTC |