mark_roach

msg:4078213 | 10:41 am on Feb 11, 2010 (gmt 0) |
The way I would code this is: my $area = Mycalc::_area(5,6); I have no idea if it is the best way to do it, but it works for me.
|
bornlsr

msg:4078388 | 3:06 pm on Feb 11, 2010 (gmt 0) |
Now I am getting errors like Can't locate object method "Package" via package "Mycalc" (perhaps you forgot to load "Mycalc"?) at Mycalc.pm line 2. Compilation failed in require at test.pl line 2. BEGIN failed--compilation aborted at test.pl line 2.
|
janharders

msg:4078400 | 3:21 pm on Feb 11, 2010 (gmt 0) |
Package should be package, with a lower case p, that's why perl is confused.
|
bornlsr

msg:4078429 | 3:59 pm on Feb 11, 2010 (gmt 0) |
Yeah, that worked ! Thank you so much janharders and mark_roach
|
janharders

msg:4078600 | 8:02 pm on Feb 11, 2010 (gmt 0) |
You're welcome. It's always good to see a little proof of life in the perl-section. one could argue that the perl-programmers just have less issues than the fallen ones that have sold their soul to php, but I'm afraid, we're simply shrinking in numbers.
|
|