Charles K. Clarkson <mailto:[EMAIL PROTECTED]> wrote:
[snip]
> 
>     You have $locdate scoped to the sub and all the other scoped
> outside the sub.

That's the "my" bit, right?  Filed.  Thanks.

> You are also printing the new date into the log
> instead of just returning the new date which is implied by the
> sub name.

The was my first plan, but when I couldn't get the value to
return from the sub the way I wanted it I gave up and just
printed to the log in the sub.  I still have no idea what
I did wrong.

> $retdate should NOT be in quotes.

What are the consequences of putting it in quotes?  Every
place I print in the rest of the script I've enclosed the
variables in quotes, even when I do things like:

print LOG "var1 has value $var1\n";

I can change it, but I just want to understand why it's
a bad thing.  A pointer to documentation is fine.

Also, I want to thank everyone for all the suggestions.  I've
learned a lot from your answers.  I started with this, my first
*real* perl project (and first real programing project since
college -- 12 years ago) on Monday, so that's why my code sucks. :)
 
--J(K)


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to