The dollar signs tells the subroutine how many arguments you are passing to the subroutine. Each $ is an argument. In the example you provided it will accept 2 arguments passed to it.
"The right word may be effective, but no word was ever as effective as a rightly timed pause." --Mark Twain |---------+----------------------------> | | Rob Richardson | | | <[EMAIL PROTECTED]| | | o.com> | | | | | | 07/16/2003 10:52 | | | AM | | | Please respond to| | | therobs | | | | |---------+----------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Dollar signs in subroutines? | >------------------------------------------------------------------------------------------------------------------------------| Greetings! In the "subroutines" thread, the original poster declared his FoulParser subroutine with this line: > > sub FoulParser($); Then, Steve Grazzini suggested that subroutines might look like: > sub foo ($$) { > my ($first, $second) = @_; > } What do the dollar signs mean? I've never seen them used this way before! Thanks! RobR __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ------------------------------------------------------------------------ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]