T.R | Title | User | Personal Name | Date | Lines |
---|
56.1 | You can use sprintf (...) | BRSSWS.BRO.DEC.COM::LEEN | Jaak Leen, TP/IM Support Belgium 856-8738 | Tue May 13 1997 18:02 | 8 |
| Here we go:
($x1,$x2,$x3,$x4) = ( sprintf("%0.8X",60000) =~ /(..)(..)(..)(..)/);
print "$x1 $x2 $x3 $x4\n";
Regards,
Jaak
|
56.2 | | mgb.rkg.dec.com::GILLOTT | Mark Gillott, 831-3172 (rkg) | Thu May 15 1997 11:05 | 4 |
| Thanks. I ended up using a shift & mask construct, but .1 is much better.
Where can I find out more on the "(..)" thing?.
Mark
|
56.3 | Far More Than Everything You've Ever Wanted to Know About... | BRSSWS.BRO.DEC.COM::LEEN | Jaak Leen, TP/IM Support Belgium 856-8738 | Thu May 15 1997 16:08 | 7 |
| ftp://ftp.digital.com/pub/plan/perl/CPAN/doc/FMTEYEWTK/index.html
look at 'What Makes Perl's Regular Expressions Dynamite'
Regards,
Jaak
|