On Nov 7, 9:23 pm, [EMAIL PROTECTED] (Panda-X) 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 ?
There is no point or specific reason. It's just personal preference, much like how many spaces to indent, or whether to write $big_variable_name vs $BigVariableName. It's up to the programmer whatever he/she likes better. Paul Lalli -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/