Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

RE: RE: modify variable on pass by value

by xjar (Pilgrim)
on Sep 11, 2000 at 21:20 UTC ( #31931=note: print w/replies, xml ) Need Help??


in reply to RE: modify variable on pass by value
in thread modify variable on pass by value

Just thought I'd post that this code actually strips the first letter/number of each "word" (but not the first comma) rather than just the capital letters (also stripped the newlines I added to the end of the string as well). Sadly, I do not have much knowledge in the way of regexps, so I can't add any insight into making this do exactly what the poster wanted, but the code from cianoz above worked great.
  • Comment on RE: RE: modify variable on pass by value

Replies are listed 'Best First'.
RE: RE: RE: modify variable on pass by value
by little (Curate) on Sep 11, 2000 at 21:33 UTC
    so, you'd suggest we end up with a version near to merlyns proposal
    =~ s/\b([A-Z])//g;
    but chop doesn't care if it's a number and would even remove escape charcters completly if at the end of that string.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://31931]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (3)
As of 2021-09-26 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?