At 01:33 PM 12/5/2006 -0800, $Bill Luebkert wrote: >Sure you can. The unused/skipped cells will be undef which you >can check for on the print.
undef is also a legal rvalue. Perl autoextends arrays with undef values. So regardless, perl will consider those offsets to "exist". Say he had lines with 500 or 1000 semicolons. Perl would autovivify 999 scalars and initialize them to undef values. Like this: D:\backups>perl $a[10] = 5; print scalar @a; ^D 11 If perl supported sparse arrays that would have printed 1. So yeah it would kinda work if u didn't mind the memory hit and having to check for undef array elements. Using a hash is the simpler solution. -- REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=-- "...ne cede malis" 00000100 _______________________________________________ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs