On Jun 8, 2005, at 8:44, Ing. Branislav Gerzo wrote:
Offer Kaye [OK], on Tuesday, June 7, 2005 at 17:04 (+0300) contributed
this to our collective wisdom:
OK> There's no need to escape metachars in the replacement part.
Without
OK> modifiers (such as "e" or "x") the replacement part is treat
Offer Kaye [OK], on Tuesday, June 7, 2005 at 17:04 (+0300) contributed
this to our collective wisdom:
OK> There's no need to escape metachars in the replacement part. Without
OK> modifiers (such as "e" or "x") the replacement part is treated as a
OK> simple double-quoted string (delimiter dependen
Yes. As your requirements stated are not very specific, I'd recommend you to
see the entries for
$/ (in perldco perlvar)
/s modifier for s/// operator.
|-Original Message-
|From: Cy Kurtz [mailto:[EMAIL PROTECTED]
|Sent: Tuesday, June 07, 2005 6:21 PM
|To: beginners@perl.org
|Subject: fin
On 6/7/05, Chris Devers wrote:
>
> Which matches a dot /./ -- which is a metacharacter meaning "matches
> anything at all"
Not quite correct - a dot (".") matches "any single character", not
"anything at all", and even this rule has an exception - a dot will
not match a newline ("\n") unless you
Thanks for your help. I stubled over a solution in perlop. Any
non-alphanumeric non-whitespace character can be used in place of the
forward slash in s///. I'm using s%%%(those are percentage signs) now
and things are going well. I haven't looked into the parser modules yet.
Thanks again,
Cy Kurt
On Jun 7, 2005, at 15:39, Cy Kurtz wrote:
OK ... Remember you asked for it. I have at least a dozen files that I
want to update. I want to do this:
[EMAIL PROTECTED] somedirectory]$ perl -pi~ -e
's/./officers-gasenate.html/http://www.legis.state.ga.us/cgi-bin/
peo_list.pl?List=stsenatedl/' ./c
On Tue, 7 Jun 2005, Cy Kurtz wrote:
> OK ... Remember you asked for it.
Right. Because without sufficient context, it's impossible to give an
adequate answer to a wildly open-ended question. Make sense?
> I have at least a dozen files that I want to update. I want to do
> this:
>
> [EMAIL PROTEC
OK ... Remember you asked for it. I have at least a dozen files that I
want to update. I want to do this:
[EMAIL PROTECTED] somedirectory]$ perl -pi~ -e
's/./officers-gasenate.html/http://www.legis.state.ga.us/cgi-bin/peo_list.pl?List=stsenatedl/'
./contactus.html
I was hoping to change this cod
On 6/7/05, Cy Kurtz wrote:
> Is it possible to use s/foo/bar in another way to allow replacement of
> large blocks of text with spaces, quotes, and double quotes?
>
Yes.
> Is there a better way?
>
That depends on what exactly you want to do.
HTH,
--
Offer Kaye
--
To unsubscribe, e-mail: [EMA
On Jun 7, 2005, at 14:51, Cy Kurtz wrote:
Is it possible to use s/foo/bar in another way to allow replacement of
large blocks of text with spaces, quotes, and double quotes?
Would you please send an example of what you need to accomplish?
-- fxn
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
10 matches
Mail list logo