dragonchild has asked for the wisdom of the Perl Monks concerning the following question:
$vec = ''; vec($vec, 0, 4) = 1; $bits = unpack("b*", $vec); print "$bits\n"; -------- $vec = ''; my @params = (0, 4); vec($vec, @params) = 1; $bits = unpack("b*", $vec); print "$bits\n";
There's nothing in the vec documentation that says anything about requiring three separate and distinct parameters. Does anyone have any idea what's going on? Is there a better way of doing what I'm trying to do? (This is for an upgrade to Excel::Template, so I'd rather not require non-core modules, if possible.)
------
We are the carpenters and bricklayers of the Information Age.
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: vec and array parameters
by Abigail-II (Bishop) on Jan 07, 2004 at 16:46 UTC | |
by dragonchild (Archbishop) on Jan 07, 2004 at 17:45 UTC | |
by duff (Parson) on Jan 07, 2004 at 17:56 UTC | |
by Abigail-II (Bishop) on Jan 07, 2004 at 23:13 UTC | |
|
Re: vec and array parameters
by duff (Parson) on Jan 07, 2004 at 16:53 UTC | |
|
Re: vec and array parameters
by davido (Cardinal) on Jan 07, 2004 at 17:21 UTC | |
|
Re: vec and array parameters
by Roy Johnson (Monsignor) on Jan 07, 2004 at 17:05 UTC | |
by Thelonius (Priest) on Jan 07, 2004 at 17:09 UTC | |
by duff (Parson) on Jan 07, 2004 at 17:44 UTC | |
|
Re: vec and array parameters
by ambrus (Abbot) on Jan 09, 2004 at 12:10 UTC |