On Tue, Sep 11, 2001 at 11:58:12AM +0430, nafiseh saberi wrote:
> when you want send or receive argument to function,
> in perl this parameter shown with $,
> for example :
> foo(a,b,c);
> a  $1
> b  $2
> c  $3
> and $#  means all of arguments

You're confusing Perl with something else, perhaps shell.  @_ contains the
arguments to a function; $1, $2, $3, etc. refer to regex backreference
storage.


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

  • re:lyf nafiseh saberi
    • Michael Fowler

Reply via email to