[ic] Interesting Failure Reading Scratch Variables from Session

Jon Jensen interchange-users@icdevgroup.org
Thu Jul 18 20:26:01 2002


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