Panda-X schreef: > 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 ?
It is just style. perl -MO=Deparse -wle 'print (-x => 100); print(x => 100);' print -'x', 100; print 'x', 100; -e syntax OK -- Affijn, Ruud "Gewoon is een tijger." -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/