Re: book suggestion for atypical beginner

2004-04-07 Thread Gabor Urban
From: Ananda Stevens <[EMAIL PROTECTED]> Subject: book suggestion for atypical beginner Date: Tue, 06 Apr 2004 16:21:16 -0500 > I'm hoping someone has a suggestion for a book that would suit me. I > find books that assume no programming knowledge to be slow-moving and > often boring. But the nex

book suggestion for atypical beginner

2004-04-07 Thread Ananda Stevens
I'm hoping someone has a suggestion for a book that would suit me. I find books that assume no programming knowledge to be slow-moving and often boring. But the next step up seems to be the type of book that assumes proficiency with one or more other languages. I've got some familiarity with ot

Re: book suggestion for atypical beginner

2004-04-07 Thread Robin Sheat
On Tue, Apr 06, 2004 at 04:21:16PM -0500, Ananda Stevens wrote: > So...what book(s) would you suggest for the relative newbie with a clue? When I wanted to learn Perl, I could only afford one book, so I got 'The Perl Programming Language'. It was OK to learn from given I had plenty of experience in

Antwort: Re: book suggestion for atypical beginner ['securiQ.Watchdog': überprüft]

2004-04-07 Thread Manfred . Beilfuss
Robin Sheat <[EMAIL PROTECTED]An: [EMAIL PROTE

Re: Antwort: Re: book suggestion for atypical beginner ['securiQ.Watchdog': ?berpr?ft]

2004-04-07 Thread Robin Sheat
On Wed, Apr 07, 2004 at 01:32:23PM +0200, [EMAIL PROTECTED] wrote: > Where did you learn to use strict ??? I don't remember, I think it may have been from lurking on this list. Basically from what I've found, if strict gives you errors, then you are doing something wrong, or at least unusual and

Re: Antwort: Re: book suggestion for atypical beginner ['securiQ.Watchdog': überprüft]

2004-04-07 Thread Randal L. Schwartz
> "Manfred" == Manfred Beilfuss <[EMAIL PROTECTED]> writes: Manfred> Is there a book or url who discusses any how-to's and eventually some Manfred> pro's and con's. Learning Perl, 3rd edition (Randal and Tom *Phoenix*) does. Manfred> But none of them work with use strict. Nor do I understand

Pattern Matching

2004-04-07 Thread prabu
Hello All, Thanks for the useful informations given on my previous queries.Now I have another one query. Please help me. In pattern matching,I want to match a pattern in multiple line.How to do this?. For example,in a file,the pattern is present in 2 lines, Here my doubts are: 1.Whether need t

Matching pattern in multiple lines

2004-04-07 Thread prabu
Hello All, Thanks for the useful informations given on my previous queries.Now I have another one query. Please help me. In pattern matching,I want to match a pattern in multiple line.How to do this?. For example,in a file,the pattern is present in 2 lines, Here my doubts are: 1.Whether need t

Re: need help modifying code

2004-04-07 Thread Rob Dixon
Andrew Gaffney wrote: > > I have written the following code to generate HTML reports from Perl scripts. It > works > pretty well. I need to modify it to accept parameters for each column (e.g. column > width, > whether to total that column, etc.), but I can't figure out the best way to go about

Re: determining size of array through reference

2004-04-07 Thread Rob Dixon
Andrew Gaffney wrote: > > david wrote: > > Andrew Gaffney wrote: > > > > > >>I've got an array reference and I'm trying to figure out how many elements > >>are in it. I've tried '$#arrayref', '[EMAIL PROTECTED]', '$(@($arrayref))', and > >>probably a few others that I've forgotten. What is the corr

RE: Matching pattern in multiple lines

2004-04-07 Thread Jayakumar Rajagopal
-Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of prabu Sent: Wednesday, April 07, 2004 9:35 AM To: [EMAIL PROTECTED] Subject: Matching pattern in multiple lines Hello All, Thanks for the useful informations given on my previous queries.Now I have another one query. P

Re: Matching pattern in multiple lines

2004-04-07 Thread Rob Dixon
Prabu wrote: > > In pattern matching,I want to match a pattern in multiple line.How to do > this?. > > For example,in a file,the pattern is present in 2 lines, > Here my doubts are: > > 1.Whether need to use "/n" to distinguish between 2 lines,when decalring > them? > Or anyother operator ne

Re: Matching pattern in multiple lines

2004-04-07 Thread prabu
Thanks for the reply, the want to replace the $pattern in a .html file,with a $repalce the $pattern="http://ramesh.com/images/corner_2.gif"; width=10> $replace="a javascript variable""/images/corner_2.gif" width=10>" my repalce is donw with the command inside file operation

Re: Antwort: Re: book suggestion for atypical beginner ['securiQ.Watchdog':

2004-04-07 Thread Peter Scott
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] (Manfred Beilfuss) writes: >Where did you learn to use strict ??? > >Is there a book or url who discusses any how-to's and eventually some >pro's and con's. > >Starting with some of the book's always mentioned in question's like this, >having progr

RE: book suggestion for atypical beginner

2004-04-07 Thread McMahon, Chris
I've got some > familiarity with other languages -- I've had to learn to read simple > C/C++, Java, and assembly language code (movl.org, anyone?) -- but no > significant experience doing programming. > > So...what book(s) would you suggest for the relative newbie > with a clue? I st

Re: determining size of array through reference

2004-04-07 Thread R. Joseph Newton
Andrew Gaffney wrote: > david wrote: > > Andrew Gaffney wrote: > > > > > >>I've got an array reference and I'm trying to figure out how many elements > >>are in it. I've tried '$#arrayref', '[EMAIL PROTECTED]', '$(@($arrayref))', and > >>probably a few others that I've forgotten. What is the corre

Re: Questions about game design in perl

2004-04-07 Thread R. Joseph Newton
Morbus Iff wrote: > >I am trying to build a game in perl. I have questions. > >This is a story book game... here is the story, make a choice > >next page..here is the story, make a choice > > I'd love to see what you come up with. > Games and Perl is close to my heart. WTF does this have t

Re: Questions about game design in perl

2004-04-07 Thread Morbus Iff
>> I'd love to see what you come up with. >> Games and Perl is close to my heart. > >WTF does this have to do with the confusion >between NULL and Perl's udef [New To >Perl], the thread on which you replied? I suspect a good amount of people have no clue the purpose of a Message-ID/References, much

Re: Questions about game design in perl

2004-04-07 Thread R. Joseph Newton
"R. Joseph Newton" wrote: > Morbus Iff wrote: > > > >I am trying to build a game in perl. I have questions. > > >This is a story book game... here is the story, make a choice > > >next page..here is the story, make a choice > > > > I'd love to see what you come up with. > > Games and Perl i

Re: Questions about game design in perl

2004-04-07 Thread WC -Sx- Jones
Morbus Iff wrote: I suspect a good amount of people have no clue the purpose of a Message-ID/References, much less how replying to the wrong one (ie. "I don't feel like typing the To: address myself") and then rewriting the subject line can cause havoc with archivers and threaders. Just as bad ar

Re: determining reference type

2004-04-07 Thread JupiterHost.Net
Andrew Gaffney wrote: How do you determine what type of data a reference points to? I have a function (one in previous post) that can take either an array of scalars or an array of hash references. I want to execute different code based on which one it was. How can I do that? perldoc -f ref

Re: Questions about game design in perl

2004-04-07 Thread Luinrandir Hernsen
Hey What ever I did I'm sorry. Obvisious ly it upset someone... I'm gone.. you guys are way to uptight about little shit L Hernsen - Original Message - From: "WC -Sx- Jones" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, April 07, 2004 12:00 PM Subject: Re: Questions ab

Perl/TK

2004-04-07 Thread William.Ampeh
Hello, I am taking a look at some Ptk codes, and I think I need a to do some reading. So my question is: 1./ What is a good source or reference materials/books on Perl/Tk? 2./ Can anyone recommend a class that will help lower my learning curve (specifically on Perl/Tk). As far as Perl goe

RE: Questions about game design in perl

2004-04-07 Thread Ned Cunningham
Hey don't go. Some times people get cranky. There are still a lot of smart people that are willing to help here. Just ignore the not so smart ones ;) Ned Cunningham POS Systems Development Monro Muffler Brake 200 Holleder Parkway Rochester, NY 14615 (585) 647-6400 ext. 310 [EMAIL PROTECTED]

Re: Perl/TK

2004-04-07 Thread WilliamGunther
>Hello, > >I am taking a look at some Ptk codes, and I think I need a to do some >reading. So my question is: > >1./ What is a good source or reference materials/books on Perl/Tk? Two books. Learning Perl/Tk and Mastering Perl/Tk. I think Mastering Perl/Tk is really all you need. There's also a

Re: Questions about game design in perl

2004-04-07 Thread WC -Sx- Jones
Luinrandir Hernsen wrote: Hey What ever I did I'm sorry. Obvisious ly it upset someone... I'm gone.. you guys are way to uptight about little shit Well, I wasn't speaking about you - only to Sun Microsystems... Give us another chance... -- http://www.usenix.org/publications/perl/ -- To unsubs

Re: Questions about game design in perl

2004-04-07 Thread WC -Sx- Jones
Ned Cunningham wrote: Hey don't go. Some times people get cranky. There are still a lot of smart people that are willing to help here. Just ignore the not so smart ones ;) ... And especially those MUAs which refuse to chop off the freaking LONG footers... Oh well... I am not even gonna start a

[OT] Re: Questions about game design in perl

2004-04-07 Thread Morbus Iff
>Give us another chance... For what it's worth, "giving up" on the list this early in the game doesn't impress me very much. If someone wants to be that close-minded [1] without further investigation [2], then good riddance - they're not gonna make good programmers, so why waste our time [3] tryin

Re: Perl/TK

2004-04-07 Thread Smoot Carl-Mitchell
On Wed, 7 Apr 2004 13:31:21 EDT [EMAIL PROTECTED] wrote: > Two books. Learning Perl/Tk and Mastering Perl/Tk. I think Mastering > Perl/Tk is really all you need. There's also a pocket reference that I > have and it is quite helpful because Tk is a pretty extensive module. > But, really, like Perl,

RE: book suggestion for atypical beginner

2004-04-07 Thread u235sentinel
I started with the "Learning Perl 3rd Edition" and have moved to "Perl Object, References and Modules" both published by Oreilly. Been working with Perl code for a few months now. I also have purchased the "Perl Cookbook". There are many great examples how to do something useful. Great books!

flock return value / bit wise or'd LOCK_NB

2004-04-07 Thread JupiterHost.Net
perldoc -f flock says "If LOCK_NB is bitwise-or'ed with LOCK_SH or LOCK_EX then "flock" will return immediately rather than blocking waiting for the lock (check the return status to see if you got it)." So that would mean: use Fcntl ':flock'; flock(FH, LOCK_EX || LOCK_NB) or die "Lock failed

An extremely newbie question about appending records in a file.

2004-04-07 Thread Weaver, Walt
Okay, so I do a "perl -pi -e 's/$/;/g' " to try and append a semicolon to the end of each record in a file in Linux. It does that just fine. Unfortunately it also prepends a semicolon onto the beginning of each record too. Now, I can vi the file and do a ":%s/$/;/g" and it works just fine. Wh

RE: An extremely newbie question about appending records in a fil e.

2004-04-07 Thread Bob Showalter
Weaver, Walt wrote: > Okay, so I do a "perl -pi -e 's/$/;/g' " to try and append a > semicolon to the end of each record in a file in Linux. > > It does that just fine. Unfortunately it also prepends a semicolon > onto the beginning of each record too. Well, not exactly. Note that there's no semi

Re: An extremely newbie question about appending records in a file.

2004-04-07 Thread JupiterHost.Net
Weaver, Walt wrote: Okay, so I do a "perl -pi -e 's/$/;/g' " to try and append a Untested but off hand somethign along the lines of: perl -pi -e 's/(.)$/\1\;/g' semicolon to the end of each record in a file in Linux. It does that just fine. Unfortunately it also prepends a semicolon onto the

Re: flock return value / bit wise or'd LOCK_NB

2004-04-07 Thread Smoot Carl-Mitchell
On Wed, 07 Apr 2004 13:51:03 -0500 "JupiterHost.Net" <[EMAIL PROTECTED]> wrote: > perldoc -f flock says > > "If LOCK_NB is bitwise-or'ed with LOCK_SH or LOCK_EX then "flock" > will return immediately rather than blocking waiting for the lock > (check the return status to see if you got it).

Re: flock return value / bit wise or'd LOCK_NB

2004-04-07 Thread JupiterHost.Net
Smoot Carl-Mitchell wrote: On Wed, 07 Apr 2004 13:51:03 -0500 "JupiterHost.Net" <[EMAIL PROTECTED]> wrote: perldoc -f flock says "If LOCK_NB is bitwise-or'ed with LOCK_SH or LOCK_EX then "flock" will return immediately rather than blocking waiting for the lock (check the return status to se

how to find domain user group

2004-04-07 Thread Thomas Browner
Hi, can tell me how to find the windows user group for the current user that is logged on to pc. I am not looking the the local user group but the domain user group. Thanks Thomas -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Problem with storing data in an array

2004-04-07 Thread Romain Groleau
Hi, my sql query is select a,b and the code to store the results in stach is : my @stach; while( my @ary=$sth->fetchrow_array()) { push @stach, [EMAIL PROTECTED] ; } and this doesn't work if I look at @stach there are only ARRAY(0x81cff60) in the two columns of @stach. Can you help me plz

Re: Problem with storing data in an array

2004-04-07 Thread Randy W. Sims
On 4/7/2004 5:45 PM, Romain Groleau wrote: Hi, my sql query is select a,b and the code to store the results in stach is : my @stach; while( my @ary=$sth->fetchrow_array()) { push @stach, [EMAIL PROTECTED] ; } and this doesn't work if I look at @stach there are only ARRAY(0x81cff60) in the

Re: Problem with storing data in an array

2004-04-07 Thread JupiterHost.Net
Romain Groleau wrote: Hi, Howdy my sql query is select a,b and the code to store the results in stach is : my @stach; while( my @ary=$sth->fetchrow_array()) { push @stach, [EMAIL PROTECTED] ; } [EMAIL PROTECTED] if a reference just like [EMAIL PROTECTED] you could do the same thing by

Re: Problem with storing data in an array

2004-04-07 Thread Randy W. Sims
On 4/7/2004 5:50 PM, Randy W. Sims wrote: On 4/7/2004 5:45 PM, Romain Groleau wrote: Hi, my sql query is select a,b and the code to store the results in stach is : my @stach; while( my @ary=$sth->fetchrow_array()) { push @stach, [EMAIL PROTECTED] ; } and this doesn't work if I look at @st

Re: flock return value / bit wise or'd LOCK_NB

2004-04-07 Thread Smoot Carl-Mitchell
On Wed, 07 Apr 2004 14:50:54 -0500 "JupiterHost.Net" <[EMAIL PROTECTED]> wrote: > So flock(FH, LOCK_EX | LOCK_NB) then? Yes. > So: > my $rc = flock(FH, LOCK_EX | LOCK_NB); > > if($rc == 0) { warn "rats! Exclusive lock not granted, oh well..."; } > if(!defined $rc) { die "Could not get lock no

Re: flock return value / bit wise or'd LOCK_NB

2004-04-07 Thread JupiterHost.Net
Smoot Carl-Mitchell wrote: On Wed, 07 Apr 2004 14:50:54 -0500 "JupiterHost.Net" <[EMAIL PROTECTED]> wrote: So flock(FH, LOCK_EX | LOCK_NB) then? Yes. So: my $rc = flock(FH, LOCK_EX | LOCK_NB); if($rc == 0) { warn "rats! Exclusive lock not granted, oh well..."; } if(!defined $rc) { die "Co