Disco Stu has asked for the wisdom of the Perl Monks concerning the following question:
sub foo { ### Shortened, assume we are passed something my $self = shift; ### some stuff $self->{bar} = ref( $_[0] ) ? $_[0] : \@_; ### a couple more things }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Wierdness with a reference to @_
by chromatic (Archbishop) on Jul 01, 2000 at 00:09 UTC | |
|
Re: Wierdness with a reference to @_
by mdillon (Priest) on Jul 01, 2000 at 00:06 UTC | |
|
RE: Wierdness with a reference to @_
by merlyn (Sage) on Jul 01, 2000 at 03:30 UTC |