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 . /)) {
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
33 matches
Mail list logo