Please search the monastery before asking your questions. Often, if it seems like others must have worked it out before, it's a FAQ. Super Search is your friend. Anyways, I think you'll find that your first question has been answered, as has your second.
Update: Oops! I misread your question as two. Ignore the first "answer," -- but, as stated above, splice is going to be handy.
perl -e 'print "I love $^X$\"$]!$/"#$&V"+@( NO CARRIER'
In reply to Re: removing x from a list
by Chmrr
in thread removing x from a list
by ashaman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |