in reply to Re^2: regex match multiple line
in thread regex match multiple line (updated question)
This iterates thru the hash list %pwd_reset_errors right? So whats wrong with doing it like this above IF the key matches the error code? Why would you want to match it the other way around? I am just asking for better understanding :)while ( my ( $key, $value ) = each %pwd_reset_errors ) { if ( $key =~ m/^$error.*/ ) { ... }
Why would it matter if $one eq 1 or 1 eq $one, they were both the same thing. But like i said i am just asking for better understanding.my $one = 1; if ($one =~ 1){ ... }elsif(1 =~ $one){ ... }
|
|---|