Re: about return value

2006-03-27 Thread Chas Owens
On 3/27/06, Practical Perl <[EMAIL PROTECTED]> wrote: > Thanks all. > Again,how about the difference about a pointer and a reference? Perl does Grabage Collection (cleaning up unused memory) for you. It does this by keeping a count of the number of references a block of memory has. When this cou

Re: about return value

2006-03-27 Thread Practical Perl
Thanks all. Again,how about the difference about a pointer and a reference? 2006/3/27, Jay Savage <[EMAIL PROTECTED]>: > > On 3/25/06, Practical Perl <[EMAIL PROTECTED]> wrote: > > Hi,list, > > > > When a subroutine return a value,for example,this value is a pointer to > an > > array,which is get

Re: about return value

2006-03-27 Thread Jay Savage
On 3/25/06, Practical Perl <[EMAIL PROTECTED]> wrote: > Hi,list, > > When a subroutine return a value,for example,this value is a pointer to an > array,which is get defined in this subroutine.When out of the > subroutine,some a statement call this subroutine and receive the return > value to a vari

Re: about return value

2006-03-25 Thread Mr. Shawn H. Corey
Practical Perl wrote: Hi,list, When a subroutine return a value,for example,this value is a pointer to an array,which is get defined in this subroutine.When out of the subroutine,some a statement call this subroutine and receive the return value to a variable named as $aaa.Is $aaa a duplicate of

about return value

2006-03-25 Thread Practical Perl
Hi,list, When a subroutine return a value,for example,this value is a pointer to an array,which is get defined in this subroutine.When out of the subroutine,some a statement call this subroutine and receive the return value to a variable named as $aaa.Is $aaa a duplicate of the pointer in that sub