as it is both shorter and clearer in its intent, and doesn't pointlessly set @IPs only to immediately re-set it. For pre-5.10 you'd have to use a conditional operator, which is left as an exercise for the reader.@IPs=split /,/, $ENV{HTTP_X_FORWARDED_FOR} // $ENV{REMOTE_ADDR};
In reply to Re^3: mod-perl2 re-using $ENV{REMOTE_ADDR}
by etj
in thread mod-perl2 re-using $ENV{REMOTE_ADDR}
by bbs2web
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |