Advertisement
hackloper775

AdeA_Perl

Mar 27th, 2013
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.32 KB | None | 0 0
  1. #/usr/bin/env perl
  2.  
  3. use strict;
  4.  
  5. my @sistemas = qw(Mac Windows);
  6. my @windows = qw(XP Vista Seven);
  7. my @Mac = qw(Leopard Lion Tiger);
  8.  
  9. my @OS = (\@sistemas,\@windows,\@Mac);
  10.  
  11. my $i = 0; my $n = 0;
  12.  
  13. while ($i < $#OS+1 ) {
  14.  
  15. foreach $n (0.. @{$OS[$i]}-1) {
  16. print "Mi sistemas son $OS[$i][$n]\n";
  17. }
  18.  
  19. $i+=1;
  20.  
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement