Anybody got any ideas? Anybody from AS? Not sure what I can try next -
short of scheduling a restart of the service every week.
Paul
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Paul Sobey
Sent: 20 March 2006 11:50
To:
On Thu, 23 Mar 2006 12:05:07 -0800, you wrote:
This is probably a fun trivial question: I'd like to count the number of
words in a string. My command:
my $count = split(/\s+/,$line);
works. But Perl complains about:
Use of implicit split to @_ is deprecated
It works, but it's deprecated. I can
Eric Amick wrote:
If you've forgotten, a negative third argument forces split to produce all
of the possible fields, keeping trailing null fields. In particular, it
ignores the size of the destination list. I've more often seen this empty
list idiom in conjunction with m//g--not that it's
Hello,
I am looking for help on a regex that examines strings such as
xxxN yyy sssNNN
xxxN yyyNyyy sss
xxxN yyyNyyy ssN
and returns only the sss part? N is always a numeral, and s is always
alphabetic.
Here is what I have so far as an example. I believe there is an eloquent
What the hell, I'll give my version too. ;)
$number = $text =~ m/(\s+)/sg + 1;
Where $text is the entire document or whatever. Instead of counting ur
fingers, u can count the spaces between ur fingers and add one.
--
REMEMBER THE WORLD TRADE CENTER ---= WTC 911 =--
...ne cede malis
Paul Rousseau wrote, on Friday, March 24, 2006 12:38 PM
:I am looking for help on a regex that examines strings such as
:
: xxxN yyy sssNNN
: xxxN yyyNyyy sss
: xxxN yyyNyyy ssN
:
: and returns only the sss part? N is always a numeral, and s
: is always alphabetic.
Does
[EMAIL PROTECTED] wrote:
Hello,
I am looking for help on a regex that examines strings such as
xxxN yyy sssNNN
xxxN yyyNyyy sss
xxxN yyyNyyy ssN
and returns only the sss part? N is always a numeral, and s is always
alphabetic.
Here is what I have so far as an
$string = MBH1 WELL PIT050;
$string =~ s/.* (.*?)\d+/\1/; # Questionmark makes it
non-greedy
($prefix) = $string; # Didn't figure out how
to do ($prefix) = $string =~
print $prefix;
;
**
Hello,
I am looking for help on a regex
Paul,
Give this a shot:
/^\w+\s+\w+\s+([A-Za-z]+)\d+/
A regex should be as explicit and exclusive as possible, so I would
remove the lowercase (a-z) portion of the character class if you know
for sure that the letters you want will always be uppercase.
-Brian
_
Try this:
$string =~ /^.{3}\d\s[^\s]+\s([a-zA-Z]+)\d+$/;
$prefix = $1;
That should match:
- any three characters at the beginning of the string: ^.{3}
- followed by a number: \d
- followed by whitespace: \s
- followed by any one or more characters until the next whitespace [^\s]+
-
Something like this :
/(\w\s){2}([a-zA-Z]+)\d*/
David
Joe Discenza wrote:
Paul Rousseau wrote, on Friday, March 24, 2006 12:38 PM
:I am looking for help on a regex that examines strings such as
:
: xxxN yyy sssNNN
: xxxN yyyNyyy sss
: xxxN yyyNyyy ssN
:
: and returns only
Sisyphus wrote:
- Original Message -
From: Robert May
.
.
Steps to invoke problem:
(1) run: h2xs -A -n SomeModule
(2) cd into the created SomeModule directory
(3) run the incantation:
perl -MConfig_m Makefile.PL
nmake
nmake test
Generally this works fine, and
I think this is amusing. Can you guess in advance what it's going to do?
while(DATA){print;}
;
__END__
while(DATA){print;}
;
__END__
I run it by clicking on it in a Windows folder.
___
Perl-Win32-Users mailing list
Robert May wrote:
[possible bug with either mingw or DynaLoader under win98, narrowed down
to a mingw bug]
Now I just need to find out what the difference is between the 2 dll's.
MS's Dependency walker (Depends.exe, comes with the platform SDK)
loads both fine, and doesn't reveal anything
- Original Message -
From: Robert May
.
.
A series of tests:
Drop - ok
DropF - fails
AropF - fails
DropFi- fails
DropFile - fails
DropFiles - fails
DropX - fails
DropFx- fails
DropFilesx- fails
xDropFiles- ok
Sisyphus wrote:
- Original Message -
From: Robert May
.
.
A series of tests:
Drop - ok
DropF - fails
AropF - fails
DropFi- fails
DropFile - fails
DropFiles - fails
DropX - fails
DropFx- fails
DropFilesx- fails
xDropFiles
At 10:38 AM 3/24/2006 -0700, Paul Rousseau wrote:
I am looking for help on a regex that examines strings such as
xxxN yyy sssNNN
xxxN yyyNyyy sss
xxxN yyyNyyy ssN
and returns only the sss part? N is always a numeral, and s is always
alphabetic.
Do u have to examine those as
Jerry Kassebaum [EMAIL PROTECTED] graced perl with these words of
wisdom:
I think this is amusing. Can you guess in advance what it's going to do?
while(DATA){print;}
;
__END__
while(DATA){print;}
;
__END__
I run it by clicking on it in a Windows folder.
My first guess is that
At 05:16 PM 3/24/2006 -0600, Jerry Kassebaum wrote:
I think this is amusing. Can you guess in advance what it's going to do?
while(DATA){print;}
;
__END__
while(DATA){print;}
;
__END__
My first guess was that it would just print itself. But not so fast. It
runs differently whether u paste it
19 matches
Mail list logo