need help with the tr and s///

L

lucca70560

Michele said:
In Italy the feminine name is Michela and the masculine one is
Michele. Maybe you're confusing with french Michelle.

Nope, Michele is a girl's name. Examples include Michele Laurita,
Michele Tafoya, Michele Balan, and many more.
 
L

lucca70560

Michele said:
s/her/him/; # please!

Assuming $_ contains "Anyone with an ounce of courtesy would have used
a real email address, so those of us that want to ask further questions
in email could actually reach her.", your substitution will result in:

Anyone with an ounce of courtesy would have used a real email address,
so those of us that want to ask furthim questions in email could
actually reach him.

You should have used s/\bher\b/him/g;
 
L

lucca70560

Sherm said:
More examples: Stacy Keach, Carrol O'Connor, Marion Morrison (aka John Wayne),
this group's own Abigail - all men.

Michele is *not* traditionally a "girl's name" in Italy

Like you've even been to Italy, hillbilly.
 
J

John W. Kennedy

Sherm said:
Michele is *not* traditionally a "girl's name" in Italy,

You mean the baritone in "Il Tabarro" is a /woman/? Well, judging from
the action of the opera, she's still pretty butch.
 
M

Mark Donovan

To whom it may concern,

Some people seem to forget the perl motto, "There is more than one way to do
it."

Rather than simply posting a solution and explaining the method as a reply
to zim, who asked the question, Dondi chose to improve my method. I replied
and said Dondi was right. I wonder what part of "you're right" Dondi does
not understand? That's is a rhetorical question; no reply is necessary.

Dondi persists in wasting his time and mine revising a method again and
again. Dondi has never posted a direct reply to zim explaining a method.
That, after all, is the purpose of the thread... to answer zim's question.

I answered zim's question. I offered a method that works; I included an
explanation that is consistent with *my* solution. I assume zim found an
answer and has left; maybe zim will ask a question if more information is
needed.

As to Dondi's optimal improvements, I offer this section of the perl
documentation from perldoc perlstyle.

o Think about reusability. Why waste brainpower on a one-shot when
you might want to do something like it again? Consider
generalizing your code. Consider writing a module or object class.
Consider making your code run cleanly with "use strict" and "use
warnings" (or -w) in effect. Consider giving away your code.
Consider changing your whole world view. Consider... oh, never
mind.

o Be consistent.

o Be nice.

There are no relevant technical issues to this newsgroup that remain to be
discussed. I have offered to discuss anything further by e-mail.
"Consider... oh, never mind. Be consistent. Be nice."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,609
Members
45,253
Latest member
BlytheFant

Latest Threads

Top