
[Date Prev][Date Next][Thread Prev][Thread Next][Interchange by date
][Interchange by thread
]
Re: [ic] [more] / [more-list]
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
_______________________________________________
interchange-users mailing list
interchange-users@interchange.redhat.com
http://interchange.redhat.com/mailman/listinfo/interchange-users