RE: undef example

2004-05-07 Thread Arms, Mike
$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

RE: undef example

2004-05-07 Thread Arms, Mike
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

Re: undef example

2004-05-07 Thread $Bill Luebkert
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

Re: undef example

2004-05-07 Thread $Bill Luebkert
[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

Re: undef example

2004-05-07 Thread david . effa
>, [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

Re: undef example

2004-05-07 Thread david . effa
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&

Re: undef example

2004-05-07 Thread david . effa
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:          

Re: undef example

2004-05-07 Thread Martin Leese
"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"

Re: undef example

2004-05-07 Thread Rob Dixon
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

Re: undef example

2004-05-06 Thread $Bill Luebkert
[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