getting $1, $2 etc. in evaled regexp

2003-02-25 Thread allan juul
hi perl question eh, is not possible to get the values in parens when you do a reg match on an evaled string ? consider the snippt below, how do i get the values into $1, $2 etc ... my $str = /(.{11})(.{10})/i; my $line = test string etc etc test string; if ($line =~ eval(/ . $str . /)) {

Re: getting $1, $2 etc. in evaled regexp

2003-02-25 Thread Michael P . Wilson
Allan, I'm pretty sure you don't have to go through the eval to do what you're trying to do. Can't you just build the regex straight like that, with the $str? if ($line =~ /$str/) {...} or am I just imagining things because it's 3:30 in the morning? - M On Tuesday, Feb 25, 2003, at 03:03

Re: getting $1, $2 etc. in evaled regexp

2003-02-25 Thread allan juul
of course, you are right! ./allan Quoting Michael P. Wilson [EMAIL PROTECTED]: Allan, I'm pretty sure you don't have to go through the eval to do what you're trying to do. Can't you just build the regex straight like that, with the $str? if ($line =~ /$str/) {...} or am I just

Re: getting $1, $2 etc. in evaled regexp

2003-02-25 Thread Peter N Lewis
eh, is not possible to get the values in parens when you do a reg match on an evaled string ? Yes, it is. consider the snippt below, how do i get the values into $1, $2 etc ... It'd be easier to explain exactly what you are trying to do. my $str = /(.{11})(.{10})/i; This assigns the result of a

Re: Rendezvous in Perl

2003-02-25 Thread Andrew M. Langmead
On Mon, Feb 24, 2003 at 05:11:19PM -0700, Nathan Torkington wrote: Chris Nandor writes: Download Rendzevous source from Apple's Public Source site. Run SWIG on it. Enjoy. ;-) That isn't very portable beyond OS X :-) There's a Python implementation of zeroconf being developed: The mDNS

Re: getting $1, $2 etc. in evaled regexp

2003-02-25 Thread Ken Williams
On Tuesday, February 25, 2003, at 03:20 AM, Peter N Lewis wrote: Chckout: perldoc perlre for lost and lots of cool regexp stuff like (?i:regexp) to turn off case sensitivity in part of a search and (?:) to bracket without creating a $n entry and such. And then check out the zero length

CPAN r always reports old versions

2003-02-25 Thread Lorin Rivers
When I run r in CPAN, it always reports old versions, even after I do force install 'something'. I'm using fink and perl5.8 on 10.2.4. -- Lorin Rivers Marketing Professional mailto:[EMAIL PROTECTED] http://homepage.mac.com/lrivers 512.478.8114

Install DBD::Pg fails

2003-02-25 Thread Lorin Rivers
I completely wiped all my perl and fink stuff and started over, but I'm still getting: dyld: /usr/bin/perl Undefined symbols: _BIO_free blah, blah, blah -- Lorin Rivers Marketing Professional mailto:[EMAIL PROTECTED] http://homepage.mac.com/lrivers 512.478.8114

Re: konfabulator -- something to ponder

2003-02-25 Thread Chris Devers
On Thu, 13 Feb 2003, Alex Robinson wrote: Most of the sample widgets I've seen, I'd rather seo them available as menubar widgets instead. Come on Chris - that's a bit like dismissing something just because there's only a poxy hello world example, and why on earth would anyone just want to

GDBM_File module trouble?

2003-02-25 Thread Marc Kaiwi
I'm trying to install a perl module but when i run install GDBM_File I get this error. I can install other modules but not GDBM_File This is what I get: . . . Failed 2 test scripts out of 657, 99.70% okay. ### Since not all tests were successful, you may want to run some of ### them

httpd -X segfaults

2003-02-25 Thread Warren Pollans
Hello, I'm trying to work through the examples in Mod_Perl Cookbook and have gotten stuck at using Apache::DB - although my problem has nothing to do with Apache::DB. I'm on a ibook (10.1.5) with apache 1.3.26 and mod_perl 1.26 and perl5.6.0 When I try /usr/sbin/httpd -X, I get my usual

Inline::Python trap

2003-02-25 Thread Rael Dornfest
Howdy, I'm trying to get Inline::Python running under OS X and I'm getting the following trap. Any ideas? Thanks, Rael -- Can't make loaded symbols global on this platform while loading /Library/Perl/darwin/auto/Inline/Python/Python.bundle at /System/Library/Perl/darwin/DynaLoader.pm line

Re: (CB) Adding DND to apps

2003-02-25 Thread Sherm Pendley
On Tuesday, February 25, 2003, at 04:03 PM, Dan Mills wrote: I only have one question: If I don't specify anything for my application_openFile function, it still seems to work perfectly. This makes sense for the arguments (it takes @@ and CB figures that out), but the return type is not

httpd -X segfaults

2003-02-25 Thread Warren Pollans
Hello, I'm trying to work through the examples in Mod_Perl Cookbook and have gotten stuck at using Apache::DB - although my problem has nothing to do with Apache::DB. I'm on a ibook (10.1.5) with apache 1.3.26 and mod_perl 1.26 and perl5.6.0 When I try /usr/sbin/httpd -X, I get my usual

Re: CPAN r always reports old versions

2003-02-25 Thread Ken Williams
On Tuesday, February 25, 2003, at 11:10 AM, Lorin Rivers wrote: When I run r in CPAN, it always reports old versions, even after I do force install 'something'. I'm using fink and perl5.8 on 10.2.4. It's probably installing to a location that's not in @INC. Compare the place it tells you it's

Non-Perl but baffling question

2003-02-25 Thread John Horner
I have an OSX machine used as a server in another room. I nearly always get to it via a shell app. I can't remember the exact version of X that's on it. How do I find out if it's 10.1.3 or 10.1.5 from the command-line? To try and make this on topic, in case anyone doesn't know, the way to do

Re: Non-Perl but baffling question

2003-02-25 Thread Adam Wells
At 10:12 AM +1100 2/26/03, John Horner wrote: I have an OSX machine used as a server in another room. I nearly always get to it via a shell app. I can't remember the exact version of X that's on it. How do I find out if it's 10.1.3 or 10.1.5 from the command-line? Use the command sw_vers. On

Re: Non-Perl but baffling question

2003-02-25 Thread Jeff Lowrey
At 10:12 AM +1100 2/26/03, John Horner wrote: How do I find out if it's 10.1.3 or 10.1.5 from the command-line? [toothgnip:~] jeff% osascript -e 'tell application Finder to version' osascript -e 'tell application Finder to version' 10.2.1 -jeff lowrey

Re: Non-Perl but baffling question

2003-02-25 Thread Chris Devers
On Tue, 25 Feb 2003, Jeff Lowrey wrote: At 10:12 AM +1100 2/26/03, John Horner wrote: How do I find out if it's 10.1.3 or 10.1.5 from the command-line? [toothgnip:~] jeff% osascript -e 'tell application Finder to version' osascript -e 'tell application Finder to version' 10.2.1 That

Re: Non-Perl but baffling question

2003-02-25 Thread drieux
On Tuesday, Feb 25, 2003, at 15:48 US/Pacific, Chris Devers wrote: [..] That looks painful. Why not just use one of these? % sw_vers ProductName:Mac OS X ProductVersion: 10.2.4 BuildVersion: 6I32 this application appears to be only distributed with Mac OS X and not with

Re: httpd -X segfaults

2003-02-25 Thread Puneet Kishor
since no one has yet answered this, let me venture forward and ask you... On Tuesday, February 25, 2003, at 12:41 PM, Warren Pollans wrote: .. When I try /usr/sbin/httpd -X, I get my usual startup messages and then Segmentation Fault. I don't see '-X' as an available option in the output of

Re: CPAN r always reports old versions

2003-02-25 Thread Lorin Rivers
On Tuesday, February 25, 2003, at 05:11 PM, Ken Williams wrote: On Tuesday, February 25, 2003, at 11:10 AM, Lorin Rivers wrote: When I run r in CPAN, it always reports old versions, even after I do force install 'something'. I'm using fink and perl5.8 on 10.2.4. It's probably installing to a

Re: CPAN r always reports old versions

2003-02-25 Thread Ken Williams
On Tuesday, February 25, 2003, at 06:19 PM, Lorin Rivers wrote: On Tuesday, February 25, 2003, at 05:11 PM, Ken Williams wrote: On Tuesday, February 25, 2003, at 11:10 AM, Lorin Rivers wrote: When I run r in CPAN, it always reports old versions, even after I do force install 'something'. I'm

Re: Non-Perl but baffling question

2003-02-25 Thread Chris Devers
On Tue, 25 Feb 2003, drieux wrote: On Tuesday, Feb 25, 2003, at 15:48 US/Pacific, Chris Devers wrote: [..] That looks painful. Why not just use one of these? % sw_vers ProductName:Mac OS X ProductVersion: 10.2.4 BuildVersion: 6I32 this application appears to

Re: Non-Perl but baffling question

2003-02-25 Thread Chris Devers
On Tue, 25 Feb 2003, Chris Devers wrote: On Tue, 25 Feb 2003, Jeff Lowrey wrote: At 10:12 AM +1100 2/26/03, John Horner wrote: How do I find out if it's 10.1.3 or 10.1.5 from the command-line? [toothgnip:~] jeff% osascript -e 'tell application Finder to version' osascript -e 'tell

Re: CPAN r always reports old versions

2003-02-25 Thread Lorin Rivers
On Tuesday, February 25, 2003, at 06:31 PM, Ken Williams wrote: You watch the screen when it installs a module, and look at what path it says it's installing it to. There are other ways to try to figure it out, involving poking around in config files and so on, but under certain conditions

Re: Non-Perl but baffling question

2003-02-25 Thread drieux
On Tuesday, Feb 25, 2003, at 18:20 US/Pacific, Chris Devers wrote: [..] And, now that I try it, it also looks inaccurate: % sw_vers | grep 'ProductVersion' | awk '{print $2}' 10.2.4 % [..] hence for moral purity we would do: sub get_osx_version { open(VER, sw_vers |) or die

Re: CPAN r always reports old versions

2003-02-25 Thread Sherm Pendley
On Tuesday, February 25, 2003, at 09:40 PM, Lorin Rivers wrote: It looks as if there's perl stuff in both /Library/Perl/darwin and /System/Library/Perl/darwin The latter seems to include the outdated things CPAN reports, but CPAN installs stuff into the former. How do I fix things? There's

Re: Install DBD::Pg fails

2003-02-25 Thread David Wheeler
On Tuesday, February 25, 2003, at 09:18 AM, Lorin Rivers wrote: I completely wiped all my perl and fink stuff and started over, but I'm still getting: dyld: /usr/bin/perl Undefined symbols: _BIO_free blah, blah, blah I don't know what _BIO_ is, but I'm pretty sure it's got nothing to do with

Re: Non-Perl but baffling question

2003-02-25 Thread Trey Harris
In a message dated Tue, 25 Feb 2003, drieux writes: On Tuesday, Feb 25, 2003, at 18:20 US/Pacific, Chris Devers wrote: [..] And, now that I try it, it also looks inaccurate: % sw_vers | grep 'ProductVersion' | awk '{print $2}' 10.2.4 % [..] hence for moral purity we

Re: Install DBD::Pg fails

2003-02-25 Thread Lorin Rivers
On Tuesday, February 25, 2003, at 08:58 PM, David Wheeler wrote: On Tuesday, February 25, 2003, at 09:18 AM, Lorin Rivers wrote: I completely wiped all my perl and fink stuff and started over, but I'm still getting: dyld: /usr/bin/perl Undefined symbols: _BIO_free blah, blah, blah I don't know

Re: CPAN r always reports old versions

2003-02-25 Thread Ken Williams
On Tuesday, February 25, 2003, at 08:57 PM, Sherm Pendley wrote: When you install a CPAN module that's an upgrade to a core module, it warns you about this issue, and explains how to avoid the problem you're having - use the UNINST=1 option when you run Makefile.PL. I think the UNINST=1 option

Re: Non-Perl but baffling question

2003-02-25 Thread Peter N Lewis
And, now that I try it, it also looks inaccurate: % sw_vers | grep 'ProductVersion' | awk '{print $2}' 10.2.4 % osascript -e 'tell application Finder to version' 10.2.1 Not inaccurate as such. The latter returns the Finder application version. Presumably the former returns the