SPUG: a s/// question.
Andy Jacobs
andyj at microsoft.com
Tue May 2 15:50:54 CDT 2000
Just with a quick glance, I'd say that the problem might be the parenthesis
around H in the RE. Try escaping them like:
$Line =~ s/name last chng bid ask vol\(H\) high
low ahigh alow//;
- Andy Jacobs
> -----Original Message-----
> From: owner-spug-list at pm.org
> [mailto:owner-spug-list at pm.org]On Behalf Of
> Jay Scherrer
> Sent: Tuesday, May 02, 2000 1:39 PM
> To: spug-list at pm.org
> Subject: SPUG: a s/// question.
>
>
> Hello Fellow SPUGERS,
>
> I have been going around and around with trying to replace
> this string with a
> blank line. Perhaps someone could give me a clue with s///?
>
> The following string occurs three or four times in the files
> that I'm working
> with. All I want to do is replace this string with a blank
> line. ## Constant
> string needed to be stripped from file ##
>
> name last chng bid ask vol(H) high low
> ahigh alow
>
> ####I have been trying this line nested with in a if ( .. )
> range operator:
>
> $Line =~ s/name last chng bid ask vol(H)
> high low ahigh alow//;
>
> This seems to work on the other headings that are shorter but
> it seems to
> ignore this match.
> Any suggestions?
>
> Jay Scherrer
> Jay at Scherrer.com
> Gimpit at netscape.net
>
> ____________________________________________________________________
> Get your own FREE, personal Netscape WebMail account today at
http://webmail.netscape.com.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace "action" below by subscribe or unsubscribe
Email to majordomo at pm.org: "action" spug-list your_address
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
POST TO: spug-list at pm.org PROBLEMS: owner-spug-list at pm.org
Seattle Perl Users Group (SPUG) Home Page: http://www.halcyon.com/spug/
SUBSCRIBE/UNSUBSCRIBE: Replace "action" below by subscribe or unsubscribe
Email to majordomo at pm.org: "action" spug-list your_address
More information about the spug-list
mailing list