in reply to Re: Functions (Return V Print)
in thread Functions (Return V Print)

That was a typo in the post and not the code. Sorry for the confusion. When I use this syntax in my code I do get $title but it just prints one, and not foreach. If you know what I mean.

Replies are listed 'Best First'.
Re^3: Functions (Return V Print)
by jethro (Monsignor) on Feb 05, 2011 at 01:53 UTC
    If you want to collect all titles and use them in your main program, just store them in an array (use push for that) and return the array after(!) the foreach loop.