Like I said I was frustrated.  I'm using the Deitel and Deitel book.  But it is 
probably not it's fault.  I'm just confused.  


I thought I understood I needed to define how I should use the module so it would use 
it.  But from what you just said I guess not.  Please provide assistance or a example.

Thanks..
Michael Fowler <[EMAIL PROTECTED]> wrote:
> On Thu, Jul 19, 2001 at 03:38:32PM -0400, [EMAIL PROTECTED] wrote:>  use 
>Date::Calc; 
>  sub dateFriday 
>  { 
>  $day="friday"; 
>  $num="3"; 
>  my $dumpday = " $num $day "; 
>  print ("$dumpday for level0 dump."); 
>  } 
>  print ( "Time to do level 0 dump\n", $d->dateFriday() ) ; 

I don't understand this code at all.  You pull in Date::Calc, then proceed
not to use it.  You define a subroutine named dateFriday(), then call it as
a method, with $d (which I don't see initialized anywhere) as your object.  


>  Error: Can't locate object method "dateFriday" via package "dateFriday" at
>  ./listit line 13. 

$d was never initialized, so you couldn't have gotten this error from the
code you showed us.  Did you omit important details?


It seems you've picked up some strange ideas about Perl.  What reading
material have you obtained to learn the language?


Michael
--
Administrator                      www.shoebox.net
Programmer, System Administrator   www.gallanttech.com
--


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to