Re: Using Pack and Unpack

2017-12-06 Thread John W. Krahn
On Wed, 2017-12-06 at 21:53 -0600, Martin McCormick wrote: > A perl program needs to send binary data to an external device > such that 0xff looks like $ perl -le'my $x = sprintf q/%b/, 0xff; print $x' > I have a line in the program as follows: > > my $txstart = pack("

Re: On Windows 7: Strawberry Perl Portable + Glade + GTK ?

2017-12-06 Thread sisyphus1
From: Peter Schmitz Sent: Thursday, December 07, 2017 9:29 AM To: beginners@perl.org Subject: On Windows 7: Strawberry Perl Portable + Glade + GTK ? I am trying to set up a development environment on Windows 7, to use Perl and Glade. This environment needs to reside as a collection of directori

Using Pack and Unpack

2017-12-06 Thread Martin McCormick
A perl program needs to send binary data to an external device such that 0xff looks like I have a line in the program as follows: my $txstart = pack("h*","fefe5a95"); Are those 4 bytes usable as the binary data fe fe 5a 95? Is there a good way when running perl -d to

On Windows 7: Strawberry Perl Portable + Glade + GTK ?

2017-12-06 Thread Peter Schmitz
I am trying to set up a development environment on Windows 7, to use Perl and Glade. This environment needs to reside as a collection of directories on a shared network drive (say e.g., X:) which can also be accessed by users of my code, and it must avoid using C: (as much as possible). I have