Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 15:54 UTC ( [id://297955]=note: print w/replies, xml ) Need Help??


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 19: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
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (3)
As of 2024-04-25 23:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found