in reply to RE: RE: RE: Passing named parameters
in thread Passing named parameters
This will product the correct results of "-beer=>none" as long as you are not using 'strict' or -w, but of course nobody does that ... right? So to be proper:&a(-beer=>none); sub a { print join("=>",@_); }
and this will product the same results, with no warnings.use strict; &a(-beer=>'none'); sub a { print join("=>",@_); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: RE: RE: RE: RE: Passing named parameters
by eric256 (Parson) on Mar 25, 2004 at 16:59 UTC | |
by perlmonkey (Hermit) on Apr 09, 2004 at 01:19 UTC |