Now that I think about it more unpack returns an array/list of  values
but that is returning it in a string context which means modulus might
only be holding a single #? but if you suspect the side affect is the
same regarless of unpack being there then I would imagine
tostring(tobinary(modulus)) should work....


Adam H


On Mon, 7 Feb 2005 19:24:26 -0500, Troy Simpson <[EMAIL PROTECTED]> wrote:
> Thanks so far, but I am still not having much luck.  Am a disecting
> the following line of PERL and here is what I seem to understand:
> 
> $modulus = unpack('H*', MIME::Base64::decode($modulus) );
> 
> First the value of $modulus is being decoded from Base64.  Then unpack
> is grabing the whole thing and putting it back into modulus.  So in
> this example, I don't think unpack is really doing anything.  I would
> suspect that the following line of PERL would do the same thing.
> 
> $modulus = MIME::Base64::decode($modulus);
> 
> So now how would I do this in ColdFusion?
> 
> <cfset modulus = toString(toBinary(modulus)) />
> 
> OR
> 
> <cfset modulus = toBinary(toString(modulus)) />
> 
> OR
> 
> <cfset something else />
> 
> Thanks,
> Troy
> 
> --
> Troy Simpson
>  Applications Analyst/Programmer, OCPDBA, MCSE, SCSA
> North Carolina State University Libraries
> Campus Box 7111 | Raleigh | North Carolina
> ph.919.515.3855 | fax.919.513.3330
> E-mail: [EMAIL PROTECTED]
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:193498
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to