Hello Christopher,

Sunday, August 26, 2001, Christopher Solomon <[EMAIL PROTECTED]> wrote:

>> >> p.s. does anyone know, why i can not write "$a =~ s/$///g;" ?
>> 
>> CS> You can. 
>> 
>> CS> $a =~ s!$/!!g;
>> 
>> CS> Perl just gets confused with the /'s, you have to use alternate
>> CS> delimiters.
>> ok, what about "$!" ? use @? what about "$@"?
>> and so on...

CS> I guess just use whatever delimiters won't get caught up in the variable
CS> name.  You can use (I believe) any non-alphanumeric character as a regex
CS> delimiter.  I like !, /, ^, and {} personally.
:) what if i don't know variable name?

$! is $OS_ERROR, $ERRNO
$/ is $INPUT_RECORD_SEPARATOR, $RS
$^ is $FORMAT_TOP_NAME

well, ${ unassigned now...

Best wishes,
 Maxim                            mailto:[EMAIL PROTECTED]



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to