Documentation of Implicit Functionality

From: Rob Dixon (rob_at_dixon.port995.com)
Date: 11/28/03


To: beginners@perl.org
Date: Fri, 28 Nov 2003 12:27:04 -0000

John wrote:
>
> tr/// does not use regular expressions, only m// and s/// and split()
> use regular expressions.

Hi John.

Are you sure of that? I've just answered a private question
about use of $_ from a guy who was insecure about its use.
I said that the only places it was /altered/ was in 'foreach',
'while (<*>)', and (kinda) in 'map' and 'grep'. That's all
I could think of. I agree with your list above, but would add
the obvious qr//.

A definitive list of this sort of thing would be useful, if
only for evangelising Perl.

To summarise:

  Where else does Perl implicitly modify or use $_?
  Where else does Perl implicitly use regular expressions?

Any thoughts? Anybody?

Thanks,

Rob



Relevant Pages

  • Re: Preserve trailing spaces in a textbox
    ... Life, work ... John Nurick has some examples of using Regular Expressions in VBA at the ...
    (microsoft.public.access.formscoding)
  • Re: Using constants in regular expressions
    ... > which does not allow any programming stuff. ... to one involving regular expressions, perhaps the Java Programmer group is ... better luck asking your question on a Perl newsgroup. ... John McGrath ...
    (comp.lang.java.programmer)
  • Re: pulling out Numbers
    ... I'm only on my 4th read of John Walkenbach's 2003 bible so perhaps some way ... Regular expressions are extremely powerful tools for string manipulation. ...
    (microsoft.public.excel.misc)
  • Re: Extracting first 1 or 2 nymbers
    ... going to have to brush-up on regular expressions. ... John Nurick wrote: ... then one or more digits: ... John Nurick ...
    (microsoft.public.access.modulesdaovba)