sveera has asked for the wisdom of the Perl Monks concerning the following question:
Two arguments are sent to the WriteLog but in the definition there is a $$ ..I couldnt understand why $$ is used here.sub WriteLog($$) { my ( $logtype, $logtext ) = @_; my ( $out,@items)=(); push @tems, ( ref($logtext) eq 'ARRAY' ) ? @$logtext : $logtext; } And the call to the WriteLog is like : WriteLog( "INFO","*******Import Begin *****"); =======================================
formatting fixed by holli
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: variable in perl
by tlm (Prior) on Jun 17, 2005 at 12:55 UTC | |
by sveera (Initiate) on Jun 17, 2005 at 18:01 UTC | |
|
Re: variable in perl
by dorward (Curate) on Jun 17, 2005 at 12:59 UTC | |
by sveera (Initiate) on Jun 17, 2005 at 18:02 UTC |