[root@yun1 test]# cat a1.pl
my $h={'192.168.11.187'=>['root','1234567'],
'192.168.5.7' =>['root','cdsxxxkfdsfsdf'],
'192.168.5.3'=>['root','dxxxxxfa']}; foreach $key (keys %{$h}) {
print "\$key is $key\n";
print $h->{$key}->[0];
print "\n";
print $h->{$key}->[1];
print "\n";
print "------------------\n"; };
[root@yun1 test]# perl a1.pl
$key is 192.168.5.7
root
cdscccc
------------------
$key is 192.168.11.187
root
1234567
------------------
$key is 192.168.5.3
root
tttt
------------------

最新文章

  1. Android开发之登录验证
  2. Android Studio教程--从Github 下载一个Repository
  3. SPSS 统计图形
  4. Hadoop随笔(二):Hadoop V1到Hadoop V2的主要变化
  5. Linux命令(2) - 查看目录和文件大小: du -sh
  6. AutoReleasePool 和 ARC 以及Garbage Collection
  7. java 异常小结
  8. Spring 5 (0) - Introduction & Index
  9. css布局--水平垂直居中
  10. k2datas 基础编程题,判断字符串是否有重复串
  11. 记一下vue.js事件的修饰等问题
  12. SpringBoot分布式 - SpringCloud
  13. c++入门之初话结构体
  14. csv.writer写入文件有多余的空行
  15. gopath环境变量设置
  16. day08(补)
  17. 小程序笔记三:幻灯片swiper 和图片自定义高度
  18. Python3基础 __len__,__getitem__ 记录列表中元素访问的次数 定制不可变序列,下标字典
  19. Servlet 思维导图
  20. MS17-010 EternalBlue SMB Remote Windows Kernel Pool Corruption 2017-05-18 16:45

热门文章

  1. UpdateProgress使用
  2. C#&JQ仿网上商城商品条件筛选功能
  3. js window.open 参数设置
  4. bzoj1131: [POI2008]Sta
  5. Demo_张仕传_结构体考试-modify
  6. [翻译][MVC 5 + EF 6] 1:创建数据模型
  7. 一段sql的优化
  8. c#语音
  9. HTML 表格的书写方式:
  10. PHP - PHPExcel操作xls文件