Re: understading double scalar variable $$
- From: Paul Lalli <mritty@xxxxxxxxx>
- Date: Fri, 18 Jul 2008 09:52:07 -0700 (PDT)
On Jul 18, 11:23 am, Slickuser <slick.us...@xxxxxxxxx> wrote:
This is the original code.^^
Someone wrote it and I am trying to understand that's why.
sub parse_text()
{^^
my($text) = @_;
This is the *exact* code that someone wrote? Copy and pasted? Fire
that person. Or at the very least, don't use any more of his/her
code. He/She does't know what he/she's doing.
This code explicitly states that the subroutine does not take any
arguments.... and the very first thing it does is to retrieve the
argument. The only way this code works if the calls to the code use
the &-calling notation, which is evil for other reasons as well.
Paul Lalli
.
- Follow-Ups:
- Re: understading double scalar variable $$
- From: Uri Guttman
- Re: understading double scalar variable $$
- References:
- understading double scalar variable $$
- From: Slickuser
- Re: understading double scalar variable $$
- From: Joost Diepenmaat
- Re: understading double scalar variable $$
- From: Ben Morrow
- Re: understading double scalar variable $$
- From: Joost Diepenmaat
- Re: understading double scalar variable $$
- From: Ben Morrow
- Re: understading double scalar variable $$
- From: Slickuser
- understading double scalar variable $$
- Prev by Date: Re: understading double scalar variable $$
- Next by Date: Re: understading double scalar variable $$
- Previous by thread: Re: understading double scalar variable $$
- Next by thread: Re: understading double scalar variable $$
- Index(es):
Relevant Pages
|