in reply to Re: Yet another problem
in thread Rewritting SQL table definition

Ahem! Shouldn't that \1 be $1?


Cor! Like yer ring! ... HALO dammit! ... 'Ave it yer way! Hal-lo, Mister la-de-da. ... Like yer ring!

Replies are listed 'Best First'.
Re: Re: Re: Yet another problem
by Enlil (Parson) on Sep 28, 2002 at 00:20 UTC
    It can be I guess, but it will work just as well as \1. Outside of the s/// operator I must use $1 but while I am inside it I can use $1 or \1, \2 or $2...

    Update: Even though it works just as well, as per the perlre: "this is a dirty habit to get into" (as it was grandfathered in for sed fans). Sometimes a new trick is not so new nor wise to use without restraint (in this case probably never lest I be working with sed).

    -Enlil