Johannes Ernst wrote:

: I also realize that Cpan exists ;-) but that this piece of code
: isn't quite ready to go into Cpan, which is why I didn't put it
: there. I'm only posting this in the hope that somebody, one day,
: may think it could be marginally useful. That's all. I'm making
: no claims that it will address world hunger ... ;-)

    CPAN is not just for modules. You can post code there as well.
Some of the code on CPAN is pretty old. It would be nice to get
more recent code. Even the instructions are old.

  http://www.cpan.org/scripts/submitting.html


    BTW, I think indent() could be rewritten. I think these do
the same thing as your indent().

sub indent {
    my $indent = shift;
    return '' unless defined $indent;
    return '    ' x $indent;
}

# Or:

sub indent {
    return '' unless defined $_[0];
    return '    ' x $_[0];
}


HTH,

Charles K. Clarkson
-- 
Mobile Homes Specialist
254 968-8328



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


  • RE: print_r Charles K. Clarkson

Reply via email to