in reply to Error with using structs as subroutine parameters
$mystruct = shift; # defaults to @_ in a sub ($mystruct) = @_; # copies the first element into $mystruct $mystruct = $_[0]; # Ugly, and possibly misleading
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Error with using structs as subroutine parameters
by dellnak (Initiate) on Jun 08, 2009 at 09:08 UTC |