RE: Help understanding VEC

2006-03-27 Thread Jim
> > > I am trying to understand how vec() is works in the code below > > Have you seen the documentation in the perlfunc manpage? > > perldoc -f vec > > If you still have questions, after seeing the docs, please ask again. > Hope this helps! > Yes, I have read it already. Thanks -- T

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: Help understanding VEC

2006-03-27 Thread Jay Savage
On 3/27/06, Jim <[EMAIL PROTECTED]> wrote: > > > > > > I am trying to understand how vec() is works in the code below > > > > Have you seen the documentation in the perlfunc manpage? > > > > perldoc -f vec > > > > If you still have questions, after seeing the docs, please ask again. > > Hope th

RE: SMS or text messaging

2006-03-27 Thread Rafael Morales
> - Original Message - > From: "henry chen" <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED], beginners@perl.org > Subject: RE: SMS or text messaging > Date: Sun, 26 Mar 2006 15:47:50 -0800 > > > Interesting. I'm actually working on a project that requires sms > text messaging. To actually

AIML and Perl

2006-03-27 Thread Sky Blueshoes
I have been playing around with Chatbot::Eliza and found it very difficult to import and personalities already created. I am looking for an easy method for importing and using AIML. Here is an example of AIML script: WHAT IS YOUR FAVORITE VIDEO GAME I like WWII games. My favori

Re: AIML and Perl

2006-03-27 Thread Xavier Noria
On Mar 27, 2006, at 22:18, Sky Blueshoes wrote: I have been playing around with Chatbot::Eliza and found it very difficult to import and personalities already created. I am looking for an easy method for importing and using AIML. Here is an example of AIML script: I would like to

Re: Performance in multi user environment.

2006-03-27 Thread Jay Savage
On 3/24/06, Mr. Shawn H. Corey <[EMAIL PROTECTED]> wrote: > Brian McKee wrote: > > au contraire - If he is using the Spreadsheet::WriteExcel I'm sure it > > buries his server - > > it hits mine hard with just one user. > > > > I don't have a solution, just a comment that it's a real problem. > > I

dowloading files from O'Reilly

2006-03-27 Thread Christopher Spears
I'm working through the Intermediate Perl book. For Exercise 2 in Chapter 5 on page 49, I need to dowload a file called coconet.dat from the O'Reilly web site. I went through the site and could not find it. Does anyone have any idea where this file is? -- To unsubscribe, e-mail: [EMAIL PROTECT

RE: dowloading files from O'Reilly

2006-03-27 Thread Timothy Johnson
Do a Google search. Hint: alpaca_files.tgz -Original Message- From: Christopher Spears [mailto:[EMAIL PROTECTED] Sent: Monday, March 27, 2006 3:07 PM To: beginners@perl.org Subject: dowloading files from O'Reilly I'm working through the Intermediate Perl book. For Exercise 2 in Chap

RE: dowloading files from O'Reilly

2006-03-27 Thread John Bruin
Hi Christopher This link may be useful. http://www.issociate.de/board/post/313670/Does_anyone_have_%22coconet.dat%22 ?.html > -Original Message- > From: Christopher Spears [mailto:[EMAIL PROTECTED] > Sent: 28 March 2006 11:07 > To: beginners@perl.org > Subject: dowloading files from O

Re: Help understanding VEC

2006-03-27 Thread John W. Krahn
Jay Savage wrote: > > Treats the string in EXPR as a bit vector made up of elements of width > BITS, and returns the value of the element specified by OFFSET as an > unsigned integer. > > You might also want to keep in mind that the BITS must be a power of 1 It must be a power of 2. > from one

Re: Help understanding VEC

2006-03-27 Thread Chad Perrin
On Mon, Mar 27, 2006 at 04:17:41PM -0800, John W. Krahn wrote: > Jay Savage wrote: > > > > You might also want to keep in mind that the BITS must be a power of 1 > > It must be a power of 2. . . . and thus a power of 10. Ahem. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] This si

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: Help understanding VEC

2006-03-27 Thread Jim
> Jay Savage wrote: > > > > > > > You might also want to keep in mind that the BITS must be a > power of 1 > It must be a power of 2. > > > from one to 32, and that vec() is lvaluable, but you don't need to > > know that to look at the code here. > > > > vec( $address, 7, 1 ) > >

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: Help understanding VEC

2006-03-27 Thread Jay Savage
On 3/27/06, Chad Perrin <[EMAIL PROTECTED]> wrote: > On Mon, Mar 27, 2006 at 04:17:41PM -0800, John W. Krahn wrote: > > Jay Savage wrote: > > > > > > You might also want to keep in mind that the BITS must be a power of 1 > > > > It must be a power of 2. > > . . . and thus a power of 10. > > Ahem.

confusing question about GLOB

2006-03-27 Thread Jeff Pang
hello,list, See these commands pls: [EMAIL PROTECTED] coremail]$ perl -le 'our %test = (type => "software"); print $::{test}' *main::test [EMAIL PROTECTED] coremail]$ perl -le 'our %test = (type => "software"); print ${*main::test{HASH}}{type}' software [EMAIL PROTECTED] core