问一个简单的问题,如何将变量内容打印至屏幕显示出来?
问一个简单的问题,如何将变量打印至屏幕显示出来?
代码如下:
%command = ( 'Read_Write_Mode ' => $RWMode, #default: 8051 raw bytes
'Write_Verify_Mode ' => $WVMode,
'Max_Write_Size ' => $maxWrite, #default = 255
'Sector_Erase_Mode ' => $SEM,
'Manual_Standby ' => 0,
'Minidriver ' => $minidriver,
'Firmware_Image ' => $firmware_file,
'Firmware_Location ' => $fwTarg);
BTSP::InitiateDownload(\%command);
我想将command的内容打印出来,如何办到呢?
[解决办法]
use Data::Dump qw(dump);
print dump(%command);