Beefy Boxes and Bandwidth Generously Provided by pair Networks RobOMonk
more useful options
 
PerlMonks  

Re: Re: How do I delete a row of an array (use splice, not delete)

by fletcher_the_dog (Friar)
on Oct 09, 2003 at 11:54 UTC ( [id://297955]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Re: How do I delete a row of an array (use splice, not delete)
in thread How do I delete a row of an array

There is another important difference between splice and substr that should be mentioned. If you call
substr EXPR,OFFSET,LENGTH substr EXPR,OFFSET
This will not erase anything in the string while if you use
splice ARRAY,OFFSET,LENGTH splice ARRAY,OFFSET
You will erase elements from the array

Replies are listed 'Best First'.
Re: Re: Re: How do I delete a row of an array (use splice, not delete)
by Anonymous Monk on Oct 09, 2003 at 15:12 UTC
    Thanks for all the responses.
    I am currently using the splice command in my script.
    It seems it is leaving blank data in row $i. When I view my table after using the splice command, the row $i data is replaced with blank data rather than being completely removed.
    I will try the delete function also to see if it works.
    Twitchy Eye

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://297955]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.