On Wed, Jan 25, 2012 at 09:58:50AM +0100, Salvador Fandino wrote:
> Hi,
>
> The attached patch adds support for a new variable $^U that allows to
> customize the value of undef when it is converted into an string:
>
> For instance,
>
> local $^U = '<undef>';
> print "hello $some_undefined_var";
>
> would print:
>
> hello <undef>
I like the idea. However, given that we only have a limited number of
$^<single char> variables available (now and in the future), I do have
a bikeshedding contribution: can it be turned into a ${^DESCRIPTION}
variable?
Abigail
--
$^U = "Just another Perl hacker"; print;
Thread Previous
|
Thread Next