lazyreader has asked for the wisdom of the Perl Monks concerning the following question:
and accessing the subroutine over an object as followssub wind_Up { my( $self, $copyLocation, $tcid, %parseData, $actRecordType, %cdrHash +) = @_ ; .... ....}
But I always observe that I am losing the last hash that is been passed. As subroutine does not get this value. I tried by replacing the last hash by a scalar but still observe the same result. Can you let me know what is the mistake in above code? and any possible solution for the same? Naresh$obj->wind_Up( $LOGPATH, $test_id, %matchData, $recordType, %recordHas +h );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing hashes, scalars and arrays to subroutine
by toolic (Bishop) on Jan 20, 2010 at 18:09 UTC | |
|
Re: passing hashes, scalars and arrays to subroutine
by kennethk (Abbot) on Jan 20, 2010 at 18:15 UTC | |
by lazyreader (Novice) on Feb 04, 2010 at 13:31 UTC |