RE: Perl Cookbook

2002-05-15 Thread Marc te Vruchte
You can checkout the PLEAC sourceforge project, it has all recipes the cookbook has.. The difference between PLEAC and the book is that PLEAC doesn't offer any motivation or explanation with the recipes.. The project: http://pleac.sourceforge.net/ Perl specific: http://pleac.sourceforge.net/ple

RE: Installing PHP

2002-05-15 Thread Timothy Johnson
We need some more info. What are the problems? -Original Message- From: Reynaldo Valera To: [EMAIL PROTECTED] Sent: 5/15/02 9:38 PM Subject: Installing PHP HI, I am installing PHP on a UNIX-AIX box do i need to have perl installed before i can proceed, becasue i am encounteri

Installing PHP

2002-05-15 Thread Reynaldo Valera
HI, I am installing PHP on a UNIX-AIX box do i need to have perl installed before i can proceed, becasue i am encountering problems on my installation. Thnks, -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Perl Cookbook

2002-05-15 Thread Shawn
Hey Patrick, > I've just worked my way though the learning perl (lama book) 3rd edition and > I must say I found it very good, and after lurking in here for a while and > hearing people talk about the perl cookbook. I took a wander over to amazon > and read the reviews, pretty so, so I though and

RE: Getting data from an Access 2000 Database

2002-05-15 Thread Daniel J. Rychlik
Use Getopt::Std; Use Win32::ODBC; - yes Sincerely, Daniel J. Rychlik " Money does not make the world go round , Gravity does ." -Original Message- From: drieux [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 7:35 PM To: Daniel J. Rychlik Cc: [EMAIL PROTECTED] Subject: Re: Ge

Re: Getting data from an Access 2000 Database

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 04:55 , Daniel J. Rychlik wrote: > Never mind - I found my answer. Sorry for the spam [..] and the answer was? > > I'm taking on a project that requires me to access reports from an > Access database and email the report to the corresponding agent. This > has t

Perl Cookbook

2002-05-15 Thread Patrick Dempster
Hi Folks, I've just worked my way though the learning perl (lama book) 3rd edition and I must say I found it very good, and after lurking in here for a while and hearing people talk about the perl cookbook. I took a wander over to amazon and read the reviews, pretty so, so I though and for a tech

Re: Modifying text in a dat file

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 07:12 , Josh wrote: > Hey guys.. > > I wrote a script that writes to a dat file with the following > username:plan: .. example test:20: > they have 20 hours of 'dialup' access. > > If say the user "test" calls and wants to upgrade their plan to 50 hours > (our ne

RE: Getting data from an Access 2000 Database

2002-05-15 Thread Daniel J. Rychlik
Never mind - I found my answer. Sorry for the spam Sincerely, Daniel J. Rychlik " Money does not make the world go round , Gravity does ." -Original Message- From: Daniel J. Rychlik [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 5:44 PM To: [EMAIL PROTECTED] Subject: Gettin

Re: SFTP

2002-05-15 Thread Chris Ball
> "Shaun" == Shaun Fryer <[EMAIL PROTECTED]> writes: Shaun> Does anyone know off hand if there is a Perl Module for Shaun> negotiating and scripting SFTP connections? Yes, Net::SFTP. You could have found this out by typing 'sftp' into the search box at http://search.cpan.org. - Chr

SFTP

2002-05-15 Thread Shaun Fryer
Does anyone know off hand if there is a Perl Module for negotiating and scripting SFTP connections? === Shaun Fryer === London Webmasters http://LWEB.NET PH: 519-858-9660 FX: 519-858-9024 === -- To unsubscribe, e-mail: [EMAIL PROTECTED] Fo

Modifying text in a dat file

2002-05-15 Thread Josh
Hey guys.. I wrote a script that writes to a dat file with the following username:plan: .. example test:20: they have 20 hours of 'dialup' access. If say the user "test" calls and wants to upgrade their plan to 50 hours (our next plan) how would i write to the dat file and just replace the

Re: How do I delete a file

2002-05-15 Thread John W. Krahn
Connie Chan wrote: > > > unlink($_) for @$filelist ; > > Heehee.. Thanks a lot !!! I really don't know for loop can be writtern > in this way. My complement, why I try to respond something what I knew, > because it sometimes give me some smater ideas on the same stuff. =) It _could_ also be

Getting data from an Access 2000 Database

2002-05-15 Thread Daniel J. Rychlik
Hello, I'm taking on a project that requires me to access reports from an Access database and email the report to the corresponding agent. This has to be done everyday. I need to know if I can do it in perl. I've researched the different modules and the closet module I can find is the Win32::O

Re: How do I delete a file

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 02:48 , Connie Chan wrote: > >> you might want to think in terms >> >> $filelist = your_search_script_result($dir, $recurse, $pattern, >> $suffix); > > Hmm... I don't know, and not sure =) > The writer mensioned he already wrote the script for searching matched > f

Re: Help with my first package??

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 01:35 , Hanson, Robert wrote: > What is the error? > > Rob I agree with rob - the error message would help. [..] > I am trying to write a package that will execute a sql statement for me in > my cgi pages, the following is the code for the package, but when I run

Re: How do I delete a file

2002-05-15 Thread Connie Chan
> you might want to think in terms > > $filelist = your_search_script_result($dir, $recurse, $pattern, > $suffix); Hmm... I don't know, and not sure =) The writer mensioned he already wrote the script for searching matched files, and suppose it would get the file as a list... > unlink($_) for

Re: Optimising for fun/speed not good code was Unique Lists

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 10:49 , Bob Showalter wrote: Useless advice - the value of merit volks is TPS - Transactions per Second - from this you can do resolutions through the known TPK - turns per Knot - and solve the 3-bearing mo-board solution for final firing solution... Unless you are

RE: Optimising for fun/speed not good code was Unique Lists

2002-05-15 Thread Harry Jackson
> > > > sub unique{ [ keys {map { $_{$_} = 1 } @_ }] } > ^^ > > This returns a list of the results of the block { $_{$_} = 1 } > as evaluated for each value in @_. > > But the value of the expression $_{$_} = 1 is always 1, to > your map() is returnin

Re: Question in perl syntax

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 01:50 , John W. Krahn wrote: > > $ perl -le' > $val = q/3.1415BOB/; > if ( $val =~ /^\d+/ and $val > 0 and $val <11) { > print "True" } > else { > print "False" } > > print 1 + $val; > ' > True > 4.1415 hum... how to say this a) try with if ( $va

Re: Question in perl syntax

2002-05-15 Thread John W. Krahn
Drieux wrote: > > On Wednesday, May 15, 2002, at 01:02 , John W. Krahn wrote: > > Felix Geerinckx wrote: > >> on Wed, 15 May 2002 03:12:15 GMT, [EMAIL PROTECTED] (Drieux) wrote: > [..] > >>> if ( $val =~ /^\d+/ and $val > 0 and $val <11) { > >> > >> Not good enough. > >> > >> $val = 3.14

Re: Question in perl syntax

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 01:02 , John W. Krahn wrote: > Felix Geerinckx wrote: >> on Wed, 15 May 2002 03:12:15 GMT, [EMAIL PROTECTED] (Drieux) wrote: [..] >>> if ( $val =~ /^\d+/ and $val > 0 and $val <11) { >> >> Not good enough. >> >> $val = 3.141592654; >> >> is perfectly numeri

RE: Help with my first package??

2002-05-15 Thread Hanson, Robert
What is the error? Rob -Original Message- From: Miretsky, Anya [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 4:16 PM To: '[EMAIL PROTECTED]' Subject: Help with my first package?? I am trying to write a package that will execute a sql statement for me in my cgi pages, the fol

Re: Help!

2002-05-15 Thread John W. Krahn
Francesco Guglielmo wrote: > > Please help me! > I'm going crazy! > > It's perfect but I need something more.I need also the qw001234 with the > > passwd that's in another file in format: > > qw001234 rfvcde > > And I want it for all lines of all files. > I'm obviously a beginner in perl so I

Re: Question in perl syntax

2002-05-15 Thread Felix Geerinckx
on Wed, 15 May 2002 20:02:01 GMT, John W. Krahn wrote: > Felix Geerinckx wrote: >> >> $val = 3.141592654; >> >> is perfectly numeric but fails your /^\d+/. > > No it doesn't Of course it doesn't! Thanks John for spotting this (missing $ at the end of the regex :-) -- felix -- To unsu

Help with my first package??

2002-05-15 Thread Miretsky, Anya
I am trying to write a package that will execute a sql statement for me in my cgi pages, the following is the code for the package, but when I run it at the command prompt I get error messages about the first line where I set the $dsn. I think the problem is with the use of DBI. The sql that I pa

Re: Little things

2002-05-15 Thread John W. Krahn
Barbara Manfredini wrote: > > I have some little problems: > If I have a file,how can I say to cut a line where my pattern is matched? > And how can I cut just the word or what is matched? > How can I take just what is after the @ symbol(to know the dominion > contained in my file) to put it in

Re: Random write ?

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 10:11 , Connie Chan wrote: > LN0;T=1;C=2;B=1234567890 > LN1;T=0;C=3;B=AABBBCCC > LN2;T=0;C=4;B=0987654321 ok, some fun with creating a file for sysread/syswrite/sysseek stuff http://www.wetware.com/drieux/pbl/Sys/ReadWriteFile.txt ciao drieux --- -- To unsub

Re: Question in perl syntax

2002-05-15 Thread John W. Krahn
Felix Geerinckx wrote: > > on Wed, 15 May 2002 03:12:15 GMT, [EMAIL PROTECTED] (Drieux) wrote: > > > so you need to check that it is numeric... > > so you could do it with say > > > > if ( $val =~ /^\d+/ and $val > 0 and $val <11) { > > Not good enough. > > $val = 3.141592654; > > is

Re: printing from records ?

2002-05-15 Thread Michael Varin
Felix Geerinckx wrote: > on Mon, 06 May 2002 08:32:11 GMT, [EMAIL PROTECTED] (Martin A. Hansen) > wrote: > > > im able to generate records of this kind: > > > my $records = > > > { > > 'bleh' => { > > 'ISHpix' => [], > > 'gelpix' => [], > >

Re: Perl Tut's

2002-05-15 Thread Elaine -HFB- Ashton
Czar [[EMAIL PROTECTED]] quoth: *> *>Any recommendations for Beginner's Tutorials web pages ? http://bookmarks.cpan.org/search.cgi?cat=Training%2FTutorials e. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Books

2002-05-15 Thread Elaine -HFB- Ashton
Jim C. [[EMAIL PROTECTED]] quoth: *>There was a lot of stuff removed from Learning Perl 3rd Ed that was in *>2nd. It has been kind of cool to see what was removed. I guess they *>thought that some of the items were a: not important or relevant b: more *>advanced or c: deprecated (tm). I haven't

Re: Perl in a Nutshell

2002-05-15 Thread Elaine -HFB- Ashton
Denham Eva [[EMAIL PROTECTED]] quoth: *> *>I see a number of mails about Perl books. Most of them mention the O'Reilly *>Books. *>Does anyone use Perl in a Nutshell? Is it any good as a reference book? O'Reilly cornered the Perl book market pretty early so they have most of the current worthwhile

RE: Books

2002-05-15 Thread Hooten, Michael
> For anyone reading this if you are new to Perl you are at the right place. > Its tuff reading at first but gets easier with time. Trust me I'm Irish. Isn't that 'Kiss me I'm Irish?' ;-) -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Good Win32 modules to know (WAS RE: Network names and the comments)

2002-05-15 Thread Timothy Johnson
In addition to the comments already given, I would recommend familiarizing yourself with the following modules: Win32::AdminMisc from PPM repository http://www.roth.net/perl/packages: --- Created by Dave Roth to add functionalit

Re: How do I delete a file

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 10:14 , Connie Chan wrote: > @filelist = &your_search_script_result(); > for (@filelist) { unlink ($_) } now you're showing some step forward my complements! for those who are wondering why beginners are here, it's to learn and pass along that which they hav

RE: Optimising for fun/speed not good code was Unique Lists

2002-05-15 Thread Bob Showalter
> -Original Message- > From: Jackson, Harry [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 15, 2002 12:23 PM > To: [EMAIL PROTECTED] > Subject: Optimising for fun/speed not good code was Unique Lists > > > Hi > > sub harryGrep { > return [ grep { not $\{$_}++ } @_ ]; >

Re: DynaLoader and use lib problems.

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 09:16 , scotrn wrote: > > Works a little like this. > BEGIN { >use POSIX qw(uname); >my ($uname_s, $uname_r) = (POSIX::uname())[0,2]; >unshift(@INC, "/var/opt/modules/$uname_s/$uname_r" ); > } my premise here is that you did the install by OS to each o

Re: How do I delete a file

2002-05-15 Thread Connie Chan
@filelist = &your_search_script_result(); for (@filelist) { unlink ($_) } - Original Message - From: "A Taylor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, May 16, 2002 12:43 AM Subject: How do I delete a file > I have written a script that searches through a director

Re: Random write ?

2002-05-15 Thread Connie Chan
Oops seems I 've made some confusion on my question... What I am trying to do is like that... LN0;T=1;C=2;B=1234567890 LN1;T=0;C=3;B=AABBBCCC LN2;T=0;C=4;B=0987654321 (something like that in same structure) What I wish to is able to write to any 'block' / 'segment' on demand... All what I ho

RE:

2002-05-15 Thread Timothy Johnson
If there is, then it would most likely be found as a module on CPAN. Check out http://search.cpan.org -Original Message- From: Dr. Christiane Nerz To: [EMAIL PROTECTED] Sent: 5/15/02 9:40 AM Subject: Hi all! Do you know if there ist a perl implementation for suffix-trees and the ukko

Re: Question in perl syntax

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 09:12 , Jaishree Rangaraj wrote: > Hi > Now, I want to check if string or charcater is in the range. Can u > please suggest me something http://www.wetware.com/drieux/pbl/perlTrick/RangeChecker.txt but in that case you want to modify the my %is_vali

RE: Question in perl syntax

2002-05-15 Thread Timothy Johnson
Check out the perlop manpage for lt,gt,le,ge, and eq. These are the string equivalents of <,>,<=,>=, and == respectively. -Original Message- From: Jaishree Rangaraj To: [EMAIL PROTECTED] Sent: 5/15/02 9:12 AM Subject: Re:Question in perl syntax Hi Now, I want to check if string or

Re: perl-Tk static

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 08:57 , Alan Drew wrote: [..] >> oh dear - you are chasing a phantom. >> >> http://www.lns.cornell.edu/~pvhp/ptk/qna2.html > > This link does not really help the matter: >> Lastly, it should be mentioned that if you build your perl/Tk statically >> rather than

Re: How do I delete a file

2002-05-15 Thread Alan Drew
To delete files, use unlink - just as you would in the Unix terminal: e.g [mag-17 scripts]$ perl -e ' unlink "foo.bar" ' this deletes the file foo.bar. A. On Wednesday, May 15, 2002, at 04:43 PM, A Taylor wrote: > I have written a script that searches through a directory and finds > files t

RE: How do I delete a file

2002-05-15 Thread Jackson, Harry
>-Original Message- >From: A Taylor [mailto:[EMAIL PROTECTED]] > > >I have written a script that searches through a directory and >finds files >that are no longer needed - these files are actually image >files - .jpg or >..gif extensions. >But how do I actually delete the unused file

Re: How do I delete a file

2002-05-15 Thread Frank Wiles
On Wed, 15 May 2002 16:43:14 + "A Taylor" <[EMAIL PROTECTED]> wrote: > I have written a script that searches through a directory and finds files > that are no longer needed - these files are actually image files - .jpg or > ..gif extensions. > But how do I actually delete the unused files ?

How do I delete a file

2002-05-15 Thread A Taylor
I have written a script that searches through a directory and finds files that are no longer needed - these files are actually image files - .jpg or ..gif extensions. But how do I actually delete the unused files ? Any help would be greatly appreciated Thanks in advance Anadi PS: And load

beginners@perl.org

2002-05-15 Thread Dr. Christiane Nerz
Hi all! Do you know if there ist a perl implementation for suffix-trees and the ukkonen algorithm? Jane Keine verlorenen Lotto-Quittungen, keine vergessenen Gewinne mehr! Beim WEB.DE Lottoservice: http://tippen2.web.de/?x=13 --

Re: Same help 2

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 08:15 , Barbara Manfredini wrote: > > You're perfect!You answered me in a few minutes,fantastic.But there's a > problemme.I tried to use those script but nothing.I need to ask you > some more.Can you be more precise or do somethind simplier for a really > be

Re: Upgrading the Murder Tree Products was Re: Books

2002-05-15 Thread Kevin Meltzer
Beta? Is isn't even alpha. And yes, generally when I speak of the future it is in terms of sometime after the present. Cheers, Kevin On Wed, May 15, 2002 at 09:07:28AM -0700, drieux ([EMAIL PROTECTED]) said something similar to: > > On Tuesday, May 14, 2002, at 03:37 , Kevin Meltzer wrote: >

RE: Books

2002-05-15 Thread Jackson, Harry
>-Original Message- >From: Maureen E Fischer [mailto:[EMAIL PROTECTED]] > >Rob > > >Boy, I'm glad to hear that. I finished Learning Perl and started to >read this list and thought I needed to find the "Dumb as a door nail list" since I didn't >even understand most of the questions. I

Optimising for fun/speed not good code was Unique Lists

2002-05-15 Thread Jackson, Harry
Hi sub harryGrep { return [ grep { not $\{$_}++ } @_ ]; } It took me quite a while to find something quicker than the original grep using the function I first tried and then I happened across a piece of text talking about return contexts and tried the above. I also notic

DynaLoader and use lib problems.

2002-05-15 Thread scotrn
Hi ALL; Ok I started this on the sunmanages list but I think it's come to a head. The problem. We have a standard share of /var/opt/modules mounted by a few Solaris machines 2.6-2.8. I have compiled the Solaris:Kstat module for all three OS Revs and am trying to load the appropriate Module

Re:Question in perl syntax

2002-05-15 Thread Jaishree Rangaraj
Hi Now, I want to check if string or charcater is in the range. Can u please suggest me something Thanks - Do You Yahoo!? LAUNCH - Your Yahoo! Music Experience

RE: Books

2002-05-15 Thread Maureen E Fischer
> Some of the things mentioned on this list I have > never seen in Learning Perl Learning Perl is just to get you started, and much of the stuff discussed on this list goes well beyond that book. If you really get into Perl and want to move to the next level I strongly suggest the other O'Re

Re: and v. c-code style Re: If...

2002-05-15 Thread Chas Owens
On Wed, 2002-05-15 at 11:50, drieux wrote: > > On Wednesday, May 15, 2002, at 02:46 , Felix Geerinckx wrote: > > > on Wed, 15 May 2002 09:30:04 GMT, [EMAIL PROTECTED] > > (Stefan Haberer) wrote: > > > >> if( 0 <= $avg_speed <= 5 ) { $speed_cost_code > > > > You need > > > >

Re: Upgrading the Murder Tree Products was Re: Books

2002-05-15 Thread drieux
On Tuesday, May 14, 2002, at 03:37 , Kevin Meltzer wrote: > On Tue, May 14, 2002 at 02:44:01PM -0700, drieux ([EMAIL PROTECTED]) > said something similar to: >> Given that the Apocalypse is coming, you may want to wait >> until the first of the Perl6 books come out - if you are >> 'book oriente

Re: and v. c-code style Re: If...

2002-05-15 Thread Felix Geerinckx
on Wed, 15 May 2002 15:50:56 GMT, [EMAIL PROTECTED] (Drieux) wrote: > On Wednesday, May 15, 2002, at 02:46 , Felix Geerinckx wrote: >> You need >> >> if ( 0 <= $avg_speed && $avg_speed <= 5 ) { ... } > > is there any issue with using 'and' one way or > the other One keystroke. -- feli

Re: Books

2002-05-15 Thread Chas Owens
On Wed, 2002-05-15 at 11:46, Robert Beau Link wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > On Tuesday 14 May 2002 11:05 pm, Jim C. wrote: > > There was a lot of stuff removed from Learning Perl 3rd Ed > Any comments from the gang on _Programming_ Perl 2nd ed v. 3rd ed? > Will I

RE: and v. c-code style Re: If...

2002-05-15 Thread Timothy Johnson
The only issue with using 'and' as I understand it is that it has a lower precedence than &&, so sometimes you end up having to put in more parentheses. I usually opt for using && just so I know where I stand and use parentheses and algorithmic contortions to make it say what I need. -Orig

Re: perl-Tk static

2002-05-15 Thread Alan Drew
Thanks for all the help! >> [ot@papc-mag-17 Tk800.023]# make tkperl >> make: *** No rule to make target `tkperl'. Stop. >> >> Any ideas? Thanks in advance. > > oh dear - you are chasing a phantom. > > http://www.lns.cornell.edu/~pvhp/ptk/qna2.html This link does not really help the matter:

RE: :FTP question

2002-05-15 Thread Timothy Johnson
Not that I know of, but you could throw it back to the list. I think anything you found for doing that would essentially be doing the same thing I just recommended, unless you're talking about launching each download in a separate process or something. -Original Message- From: Torres,

Re: Perl in a Nutshell

2002-05-15 Thread Ron
I have numerous books, but I always suggest people look at The Perl CD Bookshelf from O'Reilly. It contains the third edition of Programming Perl. You'll have access to the combined resources of complete, unabridged versions of Perl in a Nutshell, Perl Cookbook, Programming Perl, Perl for System

and v. c-code style Re: If...

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 02:46 , Felix Geerinckx wrote: > on Wed, 15 May 2002 09:30:04 GMT, [EMAIL PROTECTED] > (Stefan Haberer) wrote: > >> if( 0 <= $avg_speed <= 5 ) { $speed_cost_code > > You need > > if ( 0 <= $avg_speed && $avg_speed <= 5 ) { ... } is there an

Re: Question in perl syntax

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 02:55 , Felix Geerinckx wrote: > on Wed, 15 May 2002 03:12:15 GMT, [EMAIL PROTECTED] (Drieux) wrote: >> >> so you could do it with say >> >> >> if ( $val =~ /^\d+/ and $val > 0 and $val <11) { > > Not good enough. > > $val = 3.141592654; > > is perfectly n

Re: perl-Tk static

2002-05-15 Thread David vd Geer Inhuur tbv IPlib
Hi Drieux, Hhhm, Unix rules, but we still need men : make babies Make: Don't know how to make babies. Stop. Hope he didn't mess up someone elses "test" too much :) Regs David --- > > > On Wednesday, May 15, 2002, at 04:34 , Alan Drew wrote: > [..] > > > > For static linking the

Re: Net::FTP question

2002-05-15 Thread Felix Geerinckx
on Wed, 15 May 2002 15:36:00 GMT, [EMAIL PROTECTED] (Jose Torres) wrote: > Can the get function in Net::FTP be used to get an entire > directory? I know the get function is used to retrieve a single > file, but I need to retrieve an entire directory. How can this be > done? Thanks. You can get

Re: Perl in a Nutshell

2002-05-15 Thread Bryan R Harris
The Perl CD Bookshelf is an excellent resource too. Version 1 contained: Perl in a Nutshell Learning Perl Learning Perl on Win32 Systems Programming Perl Advanced Perl Programming Perl Cookbook I think version 2 has even more. It's all on one CD, and has a great index that indexes

RE: :FTP question

2002-05-15 Thread Timothy Johnson
Just use Net::FTP to get a list of the files in the directory and store them in an array, and then you can loop through it and get each file. -Original Message- From: Torres, Jose To: '[EMAIL PROTECTED]' Sent: 5/15/02 8:36 AM Subject: Net::FTP question Can the get function in Net::FTP

Re: Books

2002-05-15 Thread Beau
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tuesday 14 May 2002 11:05 pm, Jim C. wrote: > There was a lot of stuff removed from Learning Perl 3rd Ed Any comments from the gang on _Programming_ Perl 2nd ed v. 3rd ed? Will I do myself irreparable harm studying from the older edition of Prog

Re: perl-Tk static

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 04:34 , Alan Drew wrote: [..] > > For static linking the following is how it is supposed to work > (I think, but I don't use static linking normally, this scheme > worked as far as this on one trial under SunOS4.) > > perl Makefile.PL > make > make tkperl > make te

Re: Network names and the comments

2002-05-15 Thread Felix Geerinckx
on Wed, 15 May 2002 13:57:49 GMT, [EMAIL PROTECTED] (Nikola Janceski) wrote: >> I don't know how to explain my problem, but I will try my best. That's a strange way to start a question, especially when an excellent explanation follows :-) >> What I want: >> I want to be able to get the l

Net::FTP question

2002-05-15 Thread Torres, Jose
Can the get function in Net::FTP be used to get an entire directory? I know the get function is used to retrieve a single file, but I need to retrieve an entire directory. How can this be done? Thanks. -Jose -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: Help!

2002-05-15 Thread David Gray
> %uid0s{$uid0} = ''; # each time through your loop Should be: $uid0s{$uid0} = ''; # till v6 *sigh* -dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Random write ?

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 07:21 , Connie Chan wrote: > Hi everybody, > > Is there any method to write a file ( text / bin ) by random ? > just like what "seek" does. where you want to start is with perldoc -f seek since you will notice a) that it exists b) tell e

RE: Same help 2

2002-05-15 Thread Barbara Manfredini
You're perfect!You answered me in a few minutes,fantastic.But there's a problemme.I tried to use those script but nothing.I need to ask you some more.Can you be more precise or do somethind simplier for a really beginner in perl?Sorry for the time you loose for me.Bye >From: "Shishir K. S

Re: Timing execution of a sub

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 04:51 , Tor Hildrum wrote: > Are there any tricks to time the execution of a sub? > Specifically I'm using the Fisher-Yates shuffle, using an array with a > couple of million numbers. I want to time the shuffle. you want perldoc Benchmark if you would li

RE: Help!

2002-05-15 Thread David Gray
> Please help me! > I'm going crazy! For cocoa puffs? > It's perfect but I need something more.I need also the > qw001234 with the > passwd that's in another file in format: > > qw001234 rfvcde > > And I want it for all lines of all files. Of ALL files? > I'm obviously a beginner in perl so

do both for distro of modules - Re: Win32::Getdrives

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 03:06 , Beau E. Cox wrote: [..] > By the by, do you (or anyone out there) know the politically-correct > way to distribute, make, and install a "binary" module (just the .lib and > .dll) so that people w/o c/c++ compilers (mainly Win32'ers) can install > an

Re: Help!

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 06:32 , Francesco Guglielmo wrote: > qw001234 rfvcde I think I see where the question got ambiguous for volks. $line_from_ok = "qw001234 rfvcde"; $line_from_Broken = "qw001234po001234 ghjkldzx001234 tgbnhy"; and the problem is that t

RE: Same help 2

2002-05-15 Thread Shishir K. Singh
-Original Message- From: Barbara Manfredini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 10:20 AM To: [EMAIL PROTECTED] Subject: Same help 2 I don't know if my mail arrived because I did not subscribe.Now I've sent a mail to [EMAIL PROTECTED] and I hope I'm ok. My simple que

Re: perl-Tk static

2002-05-15 Thread Jonathan E. Paton
> The first two steps are fine. Problem is, when I come the next step: > > [ot@papc-mag-17 Tk800.023]# make tkperl > make: *** No rule to make target `tkperl'. Stop. > > Any ideas? Thanks in advance. Verify you need this... usually everything is build with just 'make'. If the documentation say

Re: Perl in a Nutshell

2002-05-15 Thread Jonathan E. Paton
> I see a number of mails about Perl books. Most of them > mention the O'Reilly Books. Does anyone use Perl in a > Nutshell? Is it any good as a reference book? I have this particular book, however I feel that a certain amount of content rot has settled in. My version (latest?), was printed in

Need module recommandation

2002-05-15 Thread Connie Chan
Hi everybody, Is there any module can advise me to use for developing image counter ? Thank you very much, Connie

Re: A good place to tell CPAN to look?

2002-05-15 Thread Michael Lamertz
On Tue, May 14, 2002 at 11:09:05PM -0700, patrick hall wrote: > Hi, > > How can I "reset" the server that CPAN searches, and > do you have any recommendations for good ones? > > I always get to that point in CPAN where it says "what > server do you want to use?" and I think to myself, > "Uh, W

Random write ?

2002-05-15 Thread Connie Chan
Hi everybody, Is there any method to write a file ( text / bin ) by random ? just like what "seek" does. Thank you very much, Connie

Same help 2

2002-05-15 Thread Barbara Manfredini
I don't know if my mail arrived because I did not subscribe.Now I've sent a mail to [EMAIL PROTECTED] and I hope I'm ok. My simple questions were: How can I cut from a file a line where I match a word? - If I have a file with many lines,I want to cut the lines where the word "example"(or a pa

Re: How do I???

2002-05-15 Thread Michael Lamertz
On Wed, May 15, 2002 at 10:15:17AM -, Felix Geerinckx wrote: > > $y = $a[0] + $a[1]*$x + ... + $a[$n-1]*$x**($n-1) + $a[n]*$x**$n; > > This free Perl syntax should get you started. > (Note to regulars: the '...' is *not* the three-dot version of the > range operator :-) Yepp, it's the long

RE: Win32::Getdrives

2002-05-15 Thread Shishir K. Singh
Thanks everyone...Appreciate it!! -Original Message- From: Beau E. Cox [mailto:[EMAIL PROTECTED]] Sent: Tuesday, May 14, 2002 11:53 PM To: [EMAIL PROTECTED] Subject: Win32::Getdrives Hi, A recent poster asked for a way to get a list of drives on an Win32 system. Since I couldn't

RE: Same help

2002-05-15 Thread Shishir K. Singh
Could you please include how the input data looks like and how the outcome needs to be !! -Original Message- From: Barbara Manfredini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 15, 2002 9:46 AM To: [EMAIL PROTECTED] Subject: Same help I don't know if my mail arrived because I d

Network names and the comments

2002-05-15 Thread Nikola Janceski
Hey all, I posted this on perl-ntadmins@topica and it seems either I stumped them or they are all still sleeping. Any clues on a solution? > -Original Message- > From: Nikola Janceski > Sent: Wednesday, May 15, 2002 9:16 AM > To: '[EMAIL PROTECTED]' > Subject:

Same help

2002-05-15 Thread Barbara Manfredini
I don't know if my mail arrived because I did not subscribe.Now I've sent a mail to [EMAIL PROTECTED] and I hope I'm ok. My simple questions were: How can I cut from a file a line where I match a word? And how can I cut just the word matched? I need to extract from a file what is after @(to kno

Same help

2002-05-15 Thread Barbara Manfredini
I don't know if my mail arrived because I did not subscribe.Now I've sent a mail to [EMAIL PROTECTED] and I hope I'm ok. My simple questions were: How can I cut from a file a line where I match a word? And how can I cut just the word matched? I need to extract from a file what is after @(to kno

Re: Network Programming and the limiting factors - was Re: Multiple pipes going to the same file?

2002-05-15 Thread drieux
On Wednesday, May 15, 2002, at 06:33 , drieux wrote: > > volks, > sorry, but I forgot the simpler solution. change plank's constant it theoretically can speed things up a bit ciao drieux --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTE

Network Programming and the limiting factors - was Re: Multiple pipes going to the same file?

2002-05-15 Thread drieux
volks, I do hope kevin will not mind that I take back onto the list a bit of Kvetching about 'faster, better, cheaper' - the way hot networking code - problem. This will get way Ugly and a bit technical so relax, get a mug of and a big cookie and curl up around the Fire as Uncle Drieux tells th

Help!

2002-05-15 Thread Francesco Guglielmo
Please help me! I'm going crazy! It's perfect but I need something more.I need also the qw001234 with the passwd that's in another file in format: qw001234 rfvcde And I want it for all lines of all files. I'm obviously a beginner in perl so I don't know if it is possible. Bye and many thanks f

RE: Win32::Getdrives

2002-05-15 Thread Bob Showalter
> -Original Message- > From: Felix Geerinckx [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 15, 2002 5:22 AM > To: [EMAIL PROTECTED] > Subject: Re: Win32::Getdrives > > ... > there's always the 'GetLogicalDrives()' function in the > 'Win32API::File' module. Well, that'll teach me to

Little things

2002-05-15 Thread Barbara Manfredini
I have some little problems: If I have a file,how can I say to cut a line where my pattern is matched? And how can I cut just the word or what is matched? How can I take just what is after the @ symbol(to know the dominion contained in my file) to put it in an hashh ()to take each dominion one

RE: A good place to tell CPAN to look?

2002-05-15 Thread Bob Showalter
> -Original Message- > From: patrick hall [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, May 15, 2002 2:09 AM > To: [EMAIL PROTECTED] > Subject: A good place to tell CPAN to look? > > > Hi, > > I've been trying really hard to get SOAP::Lite > installed, and I think the problem comes dow

  1   2   >