Re: References ch 8 programming Perl

2003-01-09 Thread Randal L. Schwartz
> "John" == John W Krahn <[EMAIL PROTECTED]> writes: John> "Randal L. Schwartz" wrote: >> >> (In the past week, I just finished writing this stuff up for my next >> book... see the bookshelves in six months or so.) John> Does it have a title yet? Will there be an animal on the cover? :-)

Re: References ch 8 programming Perl

2003-01-08 Thread david
Randal L. Schwartz wrote: > > (In the past week, I just finished writing this stuff up for my next > book... see the bookshelves in six months or so.) > is the book going to be focus to a certain topics (such as reference, OO, etc) in Perl or is it going to be a general one? david -- To uns

Re: References ch 8 programming Perl

2003-01-08 Thread David Eason
Great explanation as usual, sir. I am looking forward to reading your next book, and good luck with everything. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: References ch 8 programming Perl

2003-01-08 Thread John W. Krahn
"Randal L. Schwartz" wrote: > > (In the past week, I just finished writing this stuff up for my next > book... see the bookshelves in six months or so.) Does it have a title yet? Will there be an animal on the cover? :-) John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMA

Re: References ch 8 programming Perl

2003-01-08 Thread Randal L. Schwartz
> "David" == David Eason <[EMAIL PROTECTED]> writes: David> I am not as knowledgeable about such things as you guys, but.. David> Isn't an anonymous array the same thing as an array literal? No. :-) Well, for one thing, there's no such thing as an array literal. So that's like saying "aren'

Re: References ch 8 programming Perl

2003-01-08 Thread David Eason
I am not as knowledgeable about such things as you guys, but.. Isn't an anonymous array the same thing as an array literal? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: References ch 8 programming Perl

2003-01-06 Thread Dan Muey
ssage- From: Todd Wade [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 04, 2003 4:00 PM To: [EMAIL PROTECTED] Subject: Re: References ch 8 programming Perl "John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My thoughts on

Re: References ch 8 programming Perl

2003-01-04 Thread Todd Wade
"John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... My thoughts on perl references. This code: > foreach $file(@files) { > > open file... > @$file = ; > close file... > } creates named arrays via symbolic references. [trwww@devel_rh trwww]$ perl $s

Re: References ch 8 programming Perl

2003-01-04 Thread Rob Dixon
Hi John. See in-line. "John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Paul Johnson wrote: > > > > I am saying that an anonymous array has no name, but it can be accessed > > via a reference to it. > > In that case the reference name is its name

Re: References ch 8 programming Perl

2003-01-04 Thread Paul Johnson
On Sat, Jan 04, 2003 at 04:58:45AM -0800, John W. Krahn wrote: > Paul Johnson wrote: > > I am saying that an anonymous array has no name, but it can be accessed > > via a reference to it. > > In that case the reference name is its name OK. This is where we disagree. I believe that you are mist

Re: References ch 8 programming Perl

2003-01-04 Thread John W. Krahn
Paul Johnson wrote: > > On Fri, Jan 03, 2003 at 06:32:10PM -0800, John W. Krahn wrote: > > > > You are saying that it has no name but it does: arrayref. If it truly > > had "no name" then there would be no way to access it anywhere else in > > the program. > > I am saying that an anonymous array

Re: References ch 8 programming Perl

2003-01-04 Thread Rob Dixon
Hi Dan (again) See in-line. "Dan Muey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Another thing I use a lot is to take form input and build sql queries based on what is input for instance > Say I want to search a table withh twenty columns > If I have a f

Re: References ch 8 programming Perl

2003-01-04 Thread Rob Dixon
Hi Dan, all I want to pull together the two subthreads and reply to them jointly. I can't, so I'm replying to this one and leaving it to you to make the association with the 'what is/isn't an anonynous array' discussion. See in-line. "Dan Muey" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECT

Re: References ch 8 programming Perl

2003-01-04 Thread Paul Johnson
On Fri, Jan 03, 2003 at 06:32:10PM -0800, John W. Krahn wrote: > Paul Johnson wrote: > > > > On Fri, Jan 03, 2003 at 03:33:30PM -0800, John W. Krahn wrote: > > > Paul Kraus wrote: > > > > > > > > Ok a couple questions on Ref from pg 251 programming Perl. > > > > > > > > push @$arrrayref,$filename)

Re: References ch 8 programming Perl

2003-01-03 Thread John W. Krahn
Paul Johnson wrote: > > On Fri, Jan 03, 2003 at 03:33:30PM -0800, John W. Krahn wrote: > > Paul Kraus wrote: > > > > > > Ok a couple questions on Ref from pg 251 programming Perl. > > > > > > push @$arrrayref,$filename); > > > $$arrayref[0]="January"; > > > @$arrayref[4..6]=qw/May June July/; > >

Re: References ch 8 programming Perl

2003-01-03 Thread Paul Johnson
On Fri, Jan 03, 2003 at 03:33:30PM -0800, John W. Krahn wrote: > Paul Kraus wrote: > > > > Ok a couple questions on Ref from pg 251 programming Perl. > > > > push @$arrrayref,$filename); > > $$arrayref[0]="January"; > > @$arrayref[4..6]=qw/May June July/; > > > > So this is actually creating an

Re: References ch 8 programming Perl

2003-01-03 Thread John W. Krahn
Paul Kraus wrote: > > Ok a couple questions on Ref from pg 251 programming Perl. > > push @$arrrayref,$filename); > $$arrayref[0]="January"; > @$arrayref[4..6]=qw/May June July/; > > So this is actually creating an anonymous array that it then references > correct? > so the assignments January e

RE: References ch 8 programming Perl

2003-01-03 Thread wiggins
Surprised no one has mentioned it, but the complete foundation of Object Oriented Perl is based on the ability to bless a referent into a particular namespace. So obviously once/if you get into OOP references play a major role. Along these lines is the ability to pass multiple different types o

RE: References ch 8 programming Perl

2003-01-03 Thread Dan Muey
will creep in and is just big and ugly Anywho hope that helps Dan -Original Message----- From: Dan Muey Sent: Friday, January 03, 2003 3:17 PM To: Perl Subject: RE: References ch 8 programming Perl I use anonymouse variables all the time. Basically in dynamic database applications. It ma

RE: References ch 8 programming Perl

2003-01-03 Thread Dan Muey
I use anonymouse variables all the time. Basically in dynamic database applications. It makes very complicated things a bit easier : @files = `ls /home/user`; foreach $file(@files) { open file... @$file = ; close file... } Open fileto contrain contents of all f

RE: References ch 8 programming Perl

2003-01-03 Thread Kipp, James
> push @$arrrayref,$filename); > $$arrayref[0]="January"; > @$arrayref[4..6]=qw/May June July/; > > So this is actually creating an anonymous array that it then > references > correct? > so the assignments January ect are being made to an anonymous array. Yes > > This is cool but maybe I am