Advertisement
Guest User

Untitled

a guest
Jun 9th, 2013
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.48 KB | None | 0 0
  1. #!/usr/bin/perl
  2.  
  3. use strict;
  4. use warnings;
  5.  
  6. use File::Basename;
  7. use lib dirname(__FILE__);
  8.  
  9. use PackClass;
  10.  
  11. my $justPacket = new PackClass();
  12.  
  13.  
  14. #my @theArray = $justPacket->getPack();
  15. my @theArray = $justPacket->getPackAlternateImplementation();
  16.  
  17. print "Second value in array: " . $theArray[1] . "\n";
  18.  
  19. print "Have " . ($#theArray + 1) . " members in the list:\n" ;
  20. foreach my $singleName (@theArray) {
  21.     print __FILE__ . ":" . __LINE__ . ":\t" . $singleName . "\n";
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement