Hello all,
I'm just trying to look over a perl script and am having trouble with figuring out what this line would produce:
$var =~ s/[^~a-zA-Z-']//g;
The best I can come up with is it will find something that does not start with '~', or any letter, or ...(I'm not sure), and substitute it with nothing.
This is part of a short subroutine to verify that all characters in $var are proper for our name search program.
Any help you could give would be appreciated.
Thanks in advance.
Scott.
I'm just trying to look over a perl script and am having trouble with figuring out what this line would produce:
$var =~ s/[^~a-zA-Z-']//g;
The best I can come up with is it will find something that does not start with '~', or any letter, or ...(I'm not sure), and substitute it with nothing.
This is part of a short subroutine to verify that all characters in $var are proper for our name search program.
Any help you could give would be appreciated.
Thanks in advance.
Scott.