Eric Roode wrote:
> >Imagine that you could easily override the conversion of undef() into a
> >string, so that when stringified it returns something like "#UNDEF#"
> >instead of just an empty string. That would make debugging far more
> >easy: take a look at the output, and search for this sentinel string.
That would allow you to localize it positionally, but if you have a string
of variables together, most of which are '' but one of which is undef, it
might still be hard.
> This would HAVE to be a very optional feature. I rely on undef
> converting to a null string in many, many programs.
Surely in those programs you don't have -w turned on, because you wouldn't
want to see all those warning messages. So here is another idea: -w causes
string interpolation of variable that evaluate to undef to be cancelled,
leaving the variable name in place, as well as giving the warning.
> ----------------------------------------------------------------------
> Eric J. Roode, [EMAIL PROTECTED] print scalar reverse sort
> Senior Software Engineer 'tona ', 'reh', 'ekca', 'lre',
> Myxa Corporation '.r', 'h ', 'uj', 'p ', 'ts';
--
Glenn
=====
There are two kinds of people, those
who finish what they start, and so
on... -- Robert Byrne
_______________________________________________
Why pay for something you could get for free?
NetZero provides FREE Internet Access and Email
http://www.netzero.net/download/index.html