I do not understand the above code. Both "host" and "port" are undefined after the above statement is executed. http_proxy is set to "http://my.proxy.example.com:8080/". I am trying to understand what is expected behavior of above code. And why is "host" and "port" not being set? I have not encountered this syntax before. Thanks, Anandmy($host,$port) = ($ENV{"http_proxy"} =~ /^(\S+)\:(\d+)$/);
In reply to need help understanding perl syntax by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |