Nice one James - that does it ..!!
something more to learn - abs
many thanks..
-Original Message-
From: James Edward Gray II [mailto:[EMAIL PROTECTED]
Sent: 17 December 2003 17:35
To: Steve Massey
Cc: [EMAIL PROTECTED]
Subject: Re: Term:ANSIColor and negative numbers
On Dec 17, 2003
Hi All
using Term:ANSIColor - does anyone know if it's possible ( or maybe I mean
practical) to print out negative numbers in say RED, at the same time
ensuring the original value is retained.
so if value is -16 the it should print 16 in RED text otherwise leave it
alone.
Thanks in advance
Stev
Hi all
I know this should be easy, but I'm at a loss
I want to match Help
Help ## match this
Helps## not match this
I am using syntax below, but it's not working
$help = "Help";
if ($source =~ /^$help/)
any ideas
Thanks in advance
Steve
--
To unsubscribe, e-mail: [EMAIL PROTECT
Ok scrub that
+ works but * doesn't
i'm guess the * is matching anything
took me 2 hours to figure that ;)
-Original Message-----
From: Steve Massey [mailto:[EMAIL PROTECTED]
Sent: 23 October 2003 11:33
To: [EMAIL PROTECTED]
Subject: substitution problem
Hi
I though I
Hi
I though I had sussed this s/ stuff but
#! /usr/bin/perl -w
$test = "BRIGHTON (Firm)";
print "$test\n";
$test =~ s/,*/,/;
$test =~ s/,*$/,/g;
print "$test\n";
does not work, I want to substitute all multiple commas into a single one.
any hel
Hi All
using the following code.. I am looking to match any text that has a date in
it ie 8-Nov, nut my code also matches 8-11b, which is not what I want
help appreciated
Steve
#! /usr/bin/perl -w
$test = "8-11b1";
##$test = "8-Nov1";
if ( $test =~ /(\d{1,2})\-(\w{3})([\d\w]*)/) {
All - especially James/Rob/John and (Shawn for showing how to describe
...) ;)
coding ideas work well
Big thanks for your time taken to help...
Steve
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Rob/James
Thanks for the input guys, still not quite there, damm nice code though...
the data files I process are typically 3000 lines long and full of blank
lines, i use HTML::PARSER to strip the pages.
sod's law say's the example I gave cannot be trusted ( and it can't)
a line like2 (5
A Berry
3
8-11
F Lynch
90
93
112
4 (3) ## forth set
-606
Flying Express
8
B W Hills
3
8-11
M Hills
90
91
116
-Original Message-
From: James Edward Gray II [mailto:[EMAIL PROTECTED]
Sent: 13 October 2003 17:16
To: Steve Massey
Cc: [EMAIL PROTECTED]
Subject
ign - help
Steve Massey wrote:
>
> I hear what your saying, but for this snippet I just want to
> cycle through the list, checking the number is correct either
> being 3or4 spaces between them, a print out at the end would
> be fine. My real data, has ifo on lines in between
Edward Gray II [mailto:[EMAIL PROTECTED]
Sent: 13 October 2003 15:39
To: Steve Massey
Cc: [EMAIL PROTECTED]
Subject: Re: design - help
On Monday, October 13, 2003, at 09:28 AM, Steve Massey wrote:
> Hi All
Howdy.
> my problem is one of progam concept, a data file is as below, my code
&g
Hi All
my problem is one of progam concept, a data file is as below, my code (which
is not doing
what I want it to do is below)
I want to parse a file with a known 3 blank lines to number 1, then for each
other
number it could be either 3 or 4 blank lines. Each number has to be checked
to see
it'
12 matches
Mail list logo