On Wed, 9 Aug 2000 12:42:18 +0100, raptor wrote:
>There shall be easier way in Perl6 for doing this ... I too get really tired
>of these "\n" and <BR>'s at the end....
>ALSO ...
>
>print @array;
I assume that's "printbr"
>must work like this :
>foreach (@array) { print "$_<BR>"};
sub printbr {
local($\, $,) = ("<BR>\n", "<BR>\n");
# let's add anewline as well
print @_;
}
I don't see the need for something in the core that
- can take one of many, many forms;
- can be written in a sub in two simple lines of code.
Besides, if this is for HTML, I wouldn't *ever* use it, because I want
my strings HTML-ified. ( '&' --> '&', '<' --> '<', etc.)
--
Bart.