vivapl has asked for the wisdom of the Perl Monks concerning the following question:
$msg="1;SS"; $msg .= "\015"; my $cmd = pack "i/A*", $msg; print $socket $cmd; while( <$socket> ){ print unpack('A*',$_) . "\n"; }
the correct output should be:1. RC I10,49,54
any help would be greatly appreciated1. RC 1. TI10,49,54
20030416 Edit by Corion : Added code tags
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Pack & Unpack
by BrowserUk (Patriarch) on Apr 16, 2003 at 15:20 UTC | |
by perlplexer (Hermit) on Apr 16, 2003 at 15:28 UTC | |
|
Re: Pack & Unpack
by vivapl (Acolyte) on Apr 16, 2003 at 15:32 UTC | |
by Thelonius (Priest) on Apr 16, 2003 at 15:49 UTC | |
|
Re: Pack & Unpack
by vivapl (Acolyte) on Apr 16, 2003 at 18:07 UTC |