in reply to Re: perl socket
in thread perl socket
It's always wise to test your code before giving advice, but it's quite unwise to *not* test code you're claiming needs to be done differently.$ perl -wle 'use constant DEFAULT_ADDR => "127.0.01"; my $address = shift || DEFAULT_ADDR; print $address' 192.168.1.1 192.168.1.1
|
|---|