Whenever I use a specific regular expression for exclusion,
I still get a value returned. Here is a snippet...
while(($name,$pass,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = getp
+went()) {
if(!($shell =~ m/false/ || m/null/ || m//)) {
print blah...
}
}
The users with "false" and "" shells are excluded, but "null" shells still get printed; However, the exclusion works if I populate the variables by using split...
...
while(<PW>) {
($name,$pass,$uid,$gid,$quota,$comment,$gcos,$dir,$shell) = split(/:
+/);
print blah...
}
Can anyone offer me a bit of insight as to what's happening here?