in reply to Re^4: How to best filter/direct data based on input structure?
in thread How to best filter/direct data based on input structure?
Take note of the additional anchor(s) in the second line.# FROM my $results = ( $input =~ /$RE{net}{IPv4}/ or is_domain($input) ) ? $i +nput : $form; # TO my $results = ( $input =~ /^$RE{net}{IPv4}$/ or is_domain($input) ) ? +$input : $form;
#!/usr/bin/perl -Tw use perl::always; my $perl_version = "5.12.5"; print $perl_version;
|
|---|