diff options
author | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-04-12 20:46:20 +0000 |
---|---|---|
committer | einhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46> | 2007-04-12 20:46:20 +0000 |
commit | df073d6e09c0f87fb2e88cc215ace843a5851d4a (patch) | |
tree | 1c15ce909d3e0353b21bbd909e6720fd485a3a53 /utils/pos | |
parent | 65458125b8f3814fd6ef4d07b55ab69f62f5a528 (diff) |
Formatting with Perltidy
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/branches/1.2@1068 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'utils/pos')
-rwxr-xr-x | utils/pos/directnet.pl | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/utils/pos/directnet.pl b/utils/pos/directnet.pl index 3bdd2e51..efe4de0a 100755 --- a/utils/pos/directnet.pl +++ b/utils/pos/directnet.pl @@ -1,19 +1,16 @@ #!/usr/bin/perl -($host, $proto, $port) = @ARGV; +( $host, $proto, $port ) = @ARGV; -socket(SOCK, 2, 1, getprotobynumber($proto)); +socket( SOCK, 2, 1, getprotobynumber($proto) ); -$dest=pack( - 's n a4 x8', 2, $port, - pack('CCCC', split(/\./, $host)) -); +$dest = pack( 's n a4 x8', 2, $port, pack( 'CCCC', split( /\./, $host ) ) ); -connect (SOCK, $dest); +connect( SOCK, $dest ); -open ('STD', '-'); -while ($line = <STD>){ - print SOCK $line; +open( 'STD', '-' ); +while ( $line = <STD> ) { + print SOCK $line; } close STD; close SOCK; |