RE: [Perl-unix-users] deleting from array

2004-10-25 Thread Keirnan, Paul
You may also find this useful. Regards, Paul From: Bruce Hudson [EMAIL PROTECTED] Sent: Friday, 6 September 2002 10:29 PM To: Keirnan, Paul Subject:Re: [Perl-unix-users] Re: Remove item from array > That is, create a new array without one of the elements. > > I then made it look

Re: [Perl-unix-users] deleting from array

2004-10-25 Thread michael higgins
Pasi Valkeila wrote: Morjesta vaan! How can I delete a value from the middle of an array so that the array shortens by one? Like this (1, 2, 3, 4, 5, 6, 7) > (1, 2, 3, 5, 6, 7) Pauli my @t = (1, 2, 3, 4, 5, 6, 7); splice @t, 3, 1; print join ', ', @t; # > (1, 2, 3, 5, 6, 7) -- mike hi

Re: [Perl-unix-users] deleting from array

2004-10-25 Thread $Bill Luebkert
Pasi Valkeila wrote: > Morjesta vaan! > > How can I delete a value from the middle of an array so that the array > shortens by one? > > Like this > > (1, 2, 3, 4, 5, 6, 7) > (1, 2, 3, 5, 6, 7) splice is your friend. -- ,-/- __ _ _ $Bill LuebkertMailto:[EMAIL PROTE

[Perl-unix-users] deleting from array

2004-10-25 Thread Pasi Valkeila
Morjesta vaan! How can I delete a value from the middle of an array so that the array shortens by one? Like this (1, 2, 3, 4, 5, 6, 7) > (1, 2, 3, 5, 6, 7) Pauli ___ Perl-Unix-Users mailing list [EMAIL PROTECTED] To unsubscribe: http://listser

Re: [Perl-unix-users] perl -v and $] Give different versions?

2004-10-25 Thread Deane . Rothenmaier
This looks suspiciously like a registry value. The reg stores version numbers as a REG_DWORD (hex number), and I'll wager that if you looked up your Perl info in it, you'd see something like 0x05008005. "Somehow," this would decode to 5.008005, or maybe translate directly to 5.8.5. Anyway, the inf