L PROTECTED] To: [EMAIL PROTECTED]
am.co.uk>cc:
Subje
Rob Richardson wrote:
>
> I will take your word that "$a = (3, 2, 1);" returns 1. I think I was
> thinking of "$a = [3, 2, 1];", in which an anonymous array would be
> created and $a would return 3, the number of elements in the array.
>
> NOT!!!
>
> The above is what I was going to say when I
"Rob Richardson" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Rob,
>
> I will take your word that "$a = (3, 2, 1);" returns 1. I think I was
> thinking of "$a = [3, 2, 1];", in which an anonymous array would be
> created and $a would return 3, the number
> - Original Message -
> From: "Rob Richardson" <[EMAIL PROTECTED]>
> To: "Rob Dixon" <[EMAIL PROTECTED]>
> Sent: Friday, December 20, 2002 1:30 PM
> Subject: Re: Passing array to a function
>
>
> > Rob,
> >
> > OK, I se
Sent by: "Paul cc: [EMAIL PROTECTED]
Johnson" Subject: Re: Passing array to a
function
- Original Message -
From: "Paul Johnson" <[EMAIL PROTECTED]>
Newsgroups: perl.beginners
To: "Rob Dixon" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, December 19, 2002 7:19 PM
Subject: Re: Passing array to a function
> On Thu, De
Satya Devarakonda wrote:
>
> Hi,
Hello,
> How can I pass an array to a function and get values back in it??? Here
> are excerpts from my code.
>
> sub getTimeInfo
> {
> my $sec = 0;
> my $min = 0;
> my $hour = 0;
> my $day = 0;
> my $mon
On Thu, Dec 19, 2002 at 03:45:56PM -, Rob Dixon wrote:
> The proper way to return arrays from a function is to pass them by
> reference.
I don't know if I would go that far. There is nothing wrong with
returning a list from a function, but if the list gets too big (handwave
here) then you mi
]
cc: [EMAIL PROTECTED]
12/19/2002 11:20 Subject: Re: Passing array to a
function
AM
From: [EMAIL PROTECTED]
>
> On Thu, 19 Dec 2002 11:04:27 -0500, [EMAIL PROTECTED]
> wrote:
> > But is it not wrong to create an array in a function and send a
> > reference to the array back into the main function?
> >
> > Because the scope of the a
On Thu, 19 Dec 2002 11:04:27 -0500, [EMAIL PROTECTED] wrote:
>
> Thank you Sir,
>
> But is it not wrong to create an array in a function and send a reference
> to the array back into the main function?
>
> Because the scope of the array is limit
cc:
Subject: Re: Passing array to a
function
12/19/2002 10:45
Satya
I'm not sure why you're getting odd results - I ran the text of your post
under Perl (with no changes) and got
Satya - Dec19 20021219 "12/19/2002","Thursday",
Satya1 - Dec19 : 20021219 : "12/19/2002","Thursday",
which looks fine to me.
The proper way to return arrays from a functi
13 matches
Mail list logo