Documentation of Implicit Functionality
From: Rob Dixon (rob_at_dixon.port995.com)
Date: 11/28/03
- Next message: John W. Krahn: "Re: problem using bash variables with command-line perl in bash script"
- Previous message: Marcus Claesson: "Re: problem using bash variables with command-line perl in bash script"
- Next in thread: John W. Krahn: "Re: Documentation of Implicit Functionality"
- Reply: John W. Krahn: "Re: Documentation of Implicit Functionality"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: John W. Krahn: "Re: problem using bash variables with command-line perl in bash script"
- Previous message: Marcus Claesson: "Re: problem using bash variables with command-line perl in bash script"
- Next in thread: John W. Krahn: "Re: Documentation of Implicit Functionality"
- Reply: John W. Krahn: "Re: Documentation of Implicit Functionality"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|