1

perl regular expression deal with $

view story
linux-howto

http://www.unix.com – Dear All, Code: #!/usr/bin/perl use strict; use warnings; my $tmp = $ARGV[0]; if ($tmp =~ s/[\ \$]//g > 0) {         print "yes\n" } else {         print "no\n"; } Output is: Code: ./master.pl " 333" yes ./master.pl "$333" no why cannot detect the $ sign? please advise. Thanks (HowTos)