2007/11/8, Jeff Pang <[EMAIL PROTECTED]>: > > > --- Panda-X <[EMAIL PROTECTED]> wrote: > > > I have a script like this : > > > > sub This { print @_ } > > > > This ( -x => 100 ) ; # prints -x100 > > This ( x => 100 ) ; # prints x100 > > > > ## > > It seems that's something just as is. > > However, I saw many packages would like to use : -option => value > > So what's the point for this style ? Is there any specific reason for > > that ? > > > > Don't think there are real difference between these two style. > But '-key' is maybe a private key in a package,which means people > shouldn't access this key from out of the package. > > I've heard sub _privatefunction { .. } is talking about some private sub that should not access from outer. But '-key' spreads everywhere for options setting like :
use Tk; $mw = MainWindow ( -title=> 'hello world' ); So still not quite understand...