Thank you all for you help . I have got my answer .
Regards
Sunita
-----Original Message-----
From: Michiel Beijen [mailto:michiel.beijen@gmail.com]
Sent: Monday, January 03, 2011 9:56 PM
To: Shlomi Fish
Cc: beginners@perl.org; Sunita Rani Pradhan
Subject: Re: default arguments in subroutine
On Mon, Jan 3, 2011 at 5:04 PM, Shlomi Fish <shlomif@iglu.org.il> wrote:
> Your subroutine implementation and the example do not match. Either
add {...}
> around the subroutine parameters to make it an anonymous hash
reference, or
> (less preferably IMHO) convert $param_ref to my %params = @_ (and omit
the
> ->).
:) thanks!
--
Mike
Thread Previous
|
Thread Next