Re: The $a have any special meanning ?
- From: "Peter Wyzl" <wyzelli@xxxxxxxxx>
- Date: Sat, 30 Jun 2007 07:34:11 GMT
"sonet" <sonet.all@xxxxxxxxxxxxx> wrote in message news:f64n0b$d1h$1@xxxxxxxxxxxxxxxxxxxx
1.pl
----------------------
use strict;
$a=1;
the perl does not return error (Global symbol "$a" requires explicit package name...)
but
2.pl
----------------------
use strict;
$c=1;
the perl return error (Global symbol "$c" requires explicit package name...)
$a and $b are special reserved variables used in sorting. perldoc -f sort
You can use them, but it is not good practice.
In fact single letter variable names are rarely good practice, particularly when you need to re-edit that code in a years time...
P
.
- References:
- The $a have any special meanning ?
- From: sonet
- The $a have any special meanning ?
- Prev by Date: FAQ 3.4 How do I find which modules are installed on my system?
- Next by Date: Re: The $a have any special meanning ?
- Previous by thread: The $a have any special meanning ?
- Next by thread: Re: The $a have any special meanning ?
- Index(es):
Relevant Pages
|
|