perl - Sys::Info - Question -



perl - Sys::Info - Question -

from sys::info::device: if device_id has value of available, names of available devices returned.

why $info->device('available'); homecoming no devices when there @ to the lowest degree cpu-device?

#!/usr/local/bin/perl utilize warnings; utilize 5.014; utilize sys::info; $info = sys::info->new; @available = $info->device('available'); 'available devices: ', scalar @available; $cpu = $info->device( 'cpu' ); 'number of cores: ', $cpu->count;

output:

available devices: 0 number of cores: 2

i same output running on mac os x box. might contact developer.

perl device

Comments

Popular posts from this blog

iphone - Dismissing a UIAlertView -

c# - Can ProtoBuf-Net deserialize to a flat class? -

javascript - Change element in each JQuery tab to dynamically generated colors -