[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
[ic] Interesting Failure Reading Scratch Variables from Session
On Thu, 18 Jul 2002, Jon wrote:
> > This is not true. The "return" is optional -- a Perl function always returns
> > the last value reached.
> >
>
> You're saying
>
> [perl]
> Something
> [/perl]
>
> Will always return 'Something' and if I'm not mistaken it will
> throw "Something' into the html. Is there a simple way to stop it from
> placing 'Something' into the html ?
Sure. Return nothing. :)
[perl]
Something;
''
[/perl]
Though I recommend the more clear practice:
[perl]
Something;
return;
[/perl]
Jon