In the code below, the if statement is not matching on any non-whitespace characters. Where is my mistake at?
print "Enter a fragment of a web address to see if it is a match fo +r the correct web site: "; chomp (my $fragment = <STDIN>); print "\n"; if ($fragment =~ m{http:// (S+) } ) { print "That is a good match for the URL\n"; } else { print "THat is not a good a match\n"; }
TIA The Catfish
In reply to Non White space function by catfish1116
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |