• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 202
  • Last Modified:

the inverse of the second last question

You told me to remove a element from an array if it is there, I have to use @array=grep{$_!=$element}@array;

How do I add an element to an array if it is not there?
0
superquestions
Asked:
superquestions
1 Solution
 
ozoCommented:
push
unshift
splice
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now