in reply to Re: Byte-order and packing numbers into strings
in thread Byte-order and packing numbers into strings

To further golf this, you could do the following:
sub bbo_32 {pack'VN',@_[0,0]}
Which is a low-tech add on to an elegant solution by demerphq.

Update: demerphq points out $_[0,0] to the correct @_[0,0]. Cut and paste error.

Replies are listed 'Best First'.
Re: Re^2: Byte-order and packing numbers into strings
by demerphq (Chancellor) on Jan 24, 2002 at 23:41 UTC
    Nice! ++ for sure! (Well, overlooking that it should be @_[0,0] ;-)

    Similar in length is also

    sub bbo_32{pack'VN',(pop)x2}

    Yves / DeMerphq
    --
    When to use Prototypes?