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

Removing a specific character from a string

I was just wondering if there is a line of code which can remove a certain character from a $string.

i.e remove all of "_" in the string $sequence
0
StephenMcGowan
Asked:
StephenMcGowan
1 Solution
 
Adam314Commented:

$sequence =~ s/_//g;

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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