$Bill Luebkert [EMAIL PROTECTED] wrote:
> Using the & will disable the use of prototypes. You
> should naturally pre-declare your subs that use prototypes.
Doh! (Note to self: wait a little while longer before
replying as often all will be made clear.)
I actually did remember this back in the t
at you recommend which are good in describing
these uses and behaviors? I've been using the O'Reilly camel book called
Programming PERL but it's pretty old (first edition).
Regards,
Dave
"Rob Dixon" <[EMAIL PROTECTED]>
05/07/2004 02:28 AM
To
Martin Leese wrote:
> "Rob Dixon" <[EMAIL PROTECTED]>
>
>>[EMAIL PROTECTED] wrote:
>>
>>>&closeFtpConn ( $MVSFTP );
>>
>>Don't use the ampersand notation unless you specifically need it. If you
>>don't know what it does differently then you don't need it!
>>
>> closeFtpConn($MVSFTP);
>>
>>is the
[EMAIL PROTECTED] wrote:
>
> Thanks Bill. Yes that works! Much thanks. Again I learned something
> from this list. Rob Dixon also pointed out some mistakes in my coding
> also.
>
> Which is better to use:
>
> 1) my ( $FTPOBJ ) = @_;
>
> --or--
>
> 2) my $FTPOBJ = shift;
>
> I've seen b
>, [EMAIL PROTECTED]
Subject: Re: undef example
"Rob Dixon" <[EMAIL PROTECTED]>
> [EMAIL PROTECTED] wrote:
>>&closeFtpConn ( $MVSFTP );
>
> Don't use the ampersand notation unless you specifically need it. If you
> don't know what i
l Luebkert" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
05/07/2004 12:06 AM
To: [EMAIL PROTECTED]
cc: [EMAIL PROTECTED]
Subject: Re: undef example
[EMAIL PROTECTED] wrote:
>
> This may be a lame question and I understand what it&
27;ve been using the O'Reilly camel book called Programming PERL but it's pretty old (first edition).
Regards,
Dave
"Rob Dixon" <[EMAIL PROTECTED]>
05/07/2004 02:28 AM
To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
cc:
"Rob Dixon" <[EMAIL PROTECTED]>
[EMAIL PROTECTED] wrote:
&closeFtpConn ( $MVSFTP );
Don't use the ampersand notation unless you specifically need it. If you
don't know what it does differently then you don't need it!
closeFtpConn($MVSFTP);
is the syntax to use.
Why? To quote "Programming Perl"
Hi Dave.
See my answer in-line below.
[EMAIL PROTECTED] wrote:
>
> This may be a lame question and I understand what it's doing, but I would
> like to know if it is possible to undefine a global EXPR if it's passed
> into a subroutine?
>
> Code here reduced to the basics. After the return f
[EMAIL PROTECTED] wrote:
>
> This may be a lame question and I understand what it's doing, but I
> would like to know if it is possible to undefine a global EXPR if it's
> passed into a subroutine?
>
> Code here reduced to the basics. After the return from routine
> closeFtpConn I want, in this
10 matches
Mail list logo