"John W. Krahn" <jwkr...@shaw.ca> writes: > > $ perl -le'my $x = sprintf q/%b/, 0xff; print $x' > 11111111 >
> use Data::Dumper; > $Data::Dumper::Useqq = 1; > > my $txstart = pack 'h*', 'fefe5a95'; > > print Dumper $txstart; Thank you and Shlomi Fish. I don't know when one stops being a beginner in perl because there are so many different things one can do with it. At least I know that this project will work because I am revisiting a similar project I did in 2008 when I wrote a program in gcc C to communicate with the same radio receiver. It worked but with perl, one does not have to re-invent so many wheels just to get a few string functions to behave. Electronics enthusiasts will understand this next sentence. Perl is like the difference between building a circuit with discrete components and building it modularly with integrated circuits that have years of development baked in. If you understand what the IC's do, you can really make something to be proud of and be pretty sure that it will not give you any nasty surprises when operating conditions change. Again, thanks to all. Martin McCormick WB5AGZ -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/