2009/12/28 Alfonso Caponi <alfonso.caponi / gmail.com>:
>
>> Your code is a bit weird. =A0First you unpack which returns an Array.
>> Then you try to match that Array against a regular expression without
>> doing anything with the result (as far as I see it will always return
>> nil anyway). =A0Finally you do array accesses on the Array returned by
>> #unpack. =A0Why do you have the regexp match attempt in there?
>>
>> Note that there are tools in Ruby to actually deal with date and time.
>> =A0So in your case you could do something like this (including giving
>> values proper names):
>
> mmmh.. Sorry but my aim is to get the date of a remote system via an
> SNMP query :(

And?

robert


--=20
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/