in reply to using a subroutine

Nice work. And yes, use strict is a real life-saver.

I guess your next lesson will be passing arrays to and from subs—and the mandatory introduction to references, something that took me a while to get my head around. Checkout Randal L Schwartz's Learning Perl Objects, References & Modules or the Perl Cookbook. Good luck.


—Brad
"Don't ever take a fence down until you know the reason it was put up. " G. K. Chesterton

Replies are listed 'Best First'.
Re^2: using a subroutine
by xjlittle (Beadle) on Aug 10, 2004 at 00:42 UTC
    Yep, it will be. I've been using one of Schwartze's books on Learning Perl which gives a brief but solid introduction into many aspects of using Perl-with some good end of chapter test questions to help the learning process.

    Passing anything to a sub, much less out of it, still causes me a lot of study to understand what I need to do :-).

    I'll certainly look into the Learning Perl Objects...book.

    Thanks for the help!

    John