On Tuesday 13 July 2004 07:20, jason corbett wrote: > > Thanks John. This was my first PERL program that I wrote and I wasn't > sure when to use the my vs the our, but your points are well > respected. I need more practice to understand how the > functions/script work so that I can condense the programming better.
Perhaps Randal's article might help clarify it for you: http://www.stonehenge.com/merlyn/UnixReview/col46.html MJD's article may help as well: http://perl.plover.com/FAQs/Namespaces.html > Question: Is the scalar function always use to return values in a > sub? No. A subroutine's return value is determined by the context in which it is called. You can use the wantarray() function to determine the context from inside the subroutine. perldoc -f wantarray > Or is this a quick and easy way to do this without using the > actual return statement? In a subroutine, the last evaluated expression determines the value returned if the return keyword is not used. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>