Re: 2nd Ed. vs. 3rd Ed.

2001-07-16 Thread David H. Adler
3rd edition should be out in about a week or so. When it comes out, maybe you should take a look at it. It's practically impossible to come up with a book that is a good learning tool for everyone. dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ New Songs/

Re: use strict

2001-06-18 Thread David H. Adler
n, I would *guess* that you have an *extremely* old version of perl. dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ "That's one of the tragedies of this life: that the men most in need of a beating up are always enormous." - John D. Hackensacker III

Re: I just don't get it....

2001-06-08 Thread David H. Adler
he administrator? dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ Okay, that's it. 30 days no computer use penalty for being stupid - Greg at http://www.userfriendly.org

Re: I just don't get it....

2001-06-08 Thread David H. Adler
n existing script on our catalog, that exact line (minus the > "Hi Dude") with the parens works within a while loop. What error are you getting? As far as I can tell, that line would print "Hi Dude (project_number) \n" rather than give an error ($resultCat being un

Re: run perl in Win 2000 ?

2001-05-29 Thread David H. Adler
On Tue, May 29, 2001 at 01:02:58PM +0200, Aaron Craig wrote: > > I end up using #! perl out of habit, even if I don't end up using > switches. Of course, another good reason to put a shebang line in a windows perl program is for portability. dha -- David H. Adler - <[EMAIL P

Re: passing part of an array to a function

2001-05-20 Thread David H. Adler
re trying to do, there must be a better way to do it. In fact, you should probably forget I even brought this up. MOVE ALONG, NOTHING TO SEE HERE! :-) dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ "You can't give a 4 to truth." - Saul Williams

Re: Looking for a good Linux-Editor

2001-05-18 Thread David H. Adler
hat emacs would fit the bill here... dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ A London.pm thread topic is like a non-alchoholic ingredient in a cocktail, its only there so you can pretend not to be an inebriated addict. - Greg McCarroll

Re: Arrays of hashes?

2001-05-17 Thread David H. Adler
look at perldoc perlref and perldoc perldsc best, dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ i gave up on every non-perl language because I had too much real work to do and it [perl] came into my life and painted pretty flowers all over my walls -Peter Fagan

Re: #!/usr/local/bin/perl

2001-05-17 Thread David H. Adler
ws which still requires a > shebang line .. or in cygwin or a shell that's been ported to Windows or > something else unusual like that The shebang line is also used even under Windows for command line switches... like the rather important -w. dha -- David H. Adler - <[EMAIL PROTECT

Re: String deconstruction?

2001-05-02 Thread David H. Adler
On Wed, May 02, 2001 at 09:00:27PM +0200, M.W. Koskamp wrote: > > - Original Message - > From: David H. Adler <[EMAIL PROTECTED]> > > For what it's worth two ideas present themselves to me. > > > > --code > > > > use Ben

Re: String deconstruction?

2001-05-02 Thread David H. Adler
ang. that was meant to be C<$q = substr($x, $_, 1)>. This happened because I was trying to get out of here. I wound up late anyway. Figures I would have screwed this up too. never mind dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ I expect my version

Re: String deconstruction?

2001-05-02 Thread David H. Adler
llclock secs ( 8.96 usr + 0.00 sys = 8.96 CPU) substring: 5 wallclock secs ( 4.35 usr + 0.00 sys = 4.35 CPU) Go wild. :-) dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ All I felt was his fear... And the exploding eyeballs. Did I mention I hate this gig? - Cordelia Chase

Re: Error: Runtime Exception

2001-04-29 Thread David H. Adler
On Sat, Apr 28, 2001 at 11:27:58AM +0530, Joel Divekar wrote: > Hi > > At 12:16 PM 4/27/2001 -0400, David H. Adler wrote: > > > >Given that there *is* no perl6 (yet), I'm guessing you don't really mean > >that, right? > > Yes I was also surprised abo

Re: Error: Runtime Exception

2001-04-27 Thread David H. Adler
On Fri, Apr 27, 2001 at 09:25:33AM -0700, Paul wrote: > > --- "David H. Adler" <[EMAIL PROTECTED]> wrote: > > On Thu, Apr 26, 2001 at 06:43:37PM -0500, Arante, Susan wrote: > > > This used to be working but after my very adventurous fiasco > > > (de

Re: Error: Runtime Exception

2001-04-27 Thread David H. Adler
on NT. Given that there *is* no perl6 (yet), I'm guessing you don't really mean that, right? dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ however, if people don't like Perl, they don't have to use it. they can stay at the office solving the

Re: Complex Regex.

2001-04-24 Thread David H. Adler
oggling Regexp::Common module: By default, this module exports a single hash ("%RE") that stores or generates commonly needed regular expressions (see the section on "List of available patterns"). Which might simplify this greatly for numbers of any complexity. dh

Re: Passing data arguments via command line

2001-04-24 Thread David H. Adler
$password, $logfile, $filename) = @ARGV > # Expect 4 arguments > # Ignore the rest for now Note, of course, that this does not actually *remove* the first four arguments from @ARGV. dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ "I go where I will and I do what I can" - Henry Fool

Re: How do I know which modules are installed?

2001-04-20 Thread David H. Adler
When use()ing modules, you just use the name of the module (e.g. CGI), rather than the name of the file the code of the module resides in (e.g. CGI.pm). dha, noting that that some of the terms, like "name", above may not be strictly, *strictly* accurate, but should be good enough for this discu

Re: use strict;

2001-04-16 Thread David H. Adler
actual scalar, rather than a one element slice can be found there. I'd put it in here, but vim is giving me some pasting problems at the moment... dha -- David H. Adler - <[EMAIL PROTECTED]> - http://www.panix.com/~dha/ Linguists don't know much, but they do know that nobody can succeed in telling people at large how to speak. - Larry Wall

Re: regular expression match?

2001-04-16 Thread David H. Adler
; > } > } You seem to have your '$' misplaced in your pattern. '$' in a regex anchors a match at the end of a string. Also, since '_' is not special in a regex, it doesn't need backslashing. Based on your example above, C may be what you're looking fo