> > It looks like you're doing this. Say if I'm way off-beam.
> 
> > sub d2h16 {
> >   sprintf "%04.4X", shift;
> > }
> 
> I don't believe it. That's amazing. That's not "off-beam", 
> that's "nail on the head". Is there a way of returning that
> as a value instead of printing it? 

sprintf() already returns it as a string; it's printf() that prints to the default 
filehandle. (As an aside, "%.4X" will produce the same result.)

--
Eric Amick
Columbia, MD
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to