Hi!
I have some questions about OOP in Perl.
1. In my class I have lot of methods, but some of them just parse a file or
pass a string to a different format (like in C, Im thinking that they are
private), In perl, whats the better way to call a private method:
$state = $this->city2state("Arg1");
and in the citystate have
sub city2state {
my $this = shift;
my $city = $_[0];
...MoreCode..
}
Or this way
$state = &city2state("Arg1");
and in citystate have
sub citystate {
my $city = $_[0];
MoreCode..
}
Which is the correct way? Im confused if I need to use $this for public and
private methods or no..
2. Exists an special nomenclature, like Arrays need to be in capital letters
and scalar variables not.
Thanks!
Pablo
--
Pablo Fischer Sandoval ([EMAIL PROTECTED])
http://www.pablo.com.mx
http://www.debianmexico.org
GPG FingerTip: 3D49 4CB8 8951 F2CA 8131 AF7C D1B9 1FB9 6B11 810C
Firma URL: http://www.pablo.com.mx/firmagpg.txt
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]