Dave Storrs <[EMAIL PROTECTED]> writes:

> On Thu, Nov 21, 2002 at 09:43:08PM +0000, Piers Cawley wrote:
> [ how should printed lists behave? ]
>> Please make the default behaviour 'debugging friendly' rather than
>> 'pretty' if that makes any sense at all. In other words, it'd be handy
>> if whatever got printed out included some unique ID for the scalar so,
>> when I'm sticking debugging print statements into code I can tell at a
>> glance whether [ 'one', 'two', 'three' ] and [ 'one', 'two', 'three' ]
>> are the same thing or simply two arrayrefs that *look* the same. How
>> about something like 'Array(<id>)[...]'? Verbose admittedly, but
>> useful.
>
> Ideally, there could even be a per-list switch and a global switch
> that says "(don't) show unique ids when interpolating lists/arrays".
> By default, it gets set to "show", but it can be turned off if you
> want.

What would that gain you? Apart from a global variable the world would
be better off without? Remember, if you want to print it out without
the 'id' information you can just do C<print @$array_ref>;

-- 
Piers

   "It is a truth universally acknowledged that a language in
    possession of a rich syntax must be in need of a rewrite."
         -- Jane Austen?

Reply via email to