[ic] [more] / [more-list]

Mike Heins interchange-users@interchange.redhat.com
Wed Oct 10 08:23:01 2001


Quoting Stefan Hornburg (Racke) (racke@linuxia.de):
> 2. return is not necessary
> [perl]
> $Safe{'scratch'}->{'morestuff'} =~ s/HREF/class\=\"treffer\"\ HREF/g;
> '';
> [/perl]

But it doesn't hurt anything and is much clearer....a return is implicit
anyway. There is no performance penalty to using it.

I would more worry about clarity here....

    $Scratch->{morestuff} =~ s/HREF/class="treffer" HREF/g;

is much easier to view than:

    $Safe{'scratch'}->{'morestuff'} =~ s/HREF/class\=\"treffer\"\ HREF/g;

-- 
Red Hat, Inc., 3005 Nichols Rd., Hamilton, OH  45013
phone +1.513.523.7621      <mheins@redhat.com>

Nature, to be commanded, must be obeyed. -- Francis Bacon