Gotcha. Thank you both again.
John
User Profile
Collapse
-
Thank you both! Kevin, yours worked well; Gannon, thanks for the tips and thoughtful walk-through. I never took coursework in Perl so I have gaping holes in my knowledge and, I forget e.g., about "my".
Can either of you tell me how in the subroutine I can retrieve the name of the array variable I passed in? I need to be able to refer to the literal, "fruitArray ".
Thanks.
JohnLeave a comment:
-
Passing interior array of two-dimensional array to subroutine
Hello,
I've made a two dimensional array using references, which I gather is the only way to do it in Perl. I now need to pass each interior array to a subroutine for processing and can't quite work out the syntax. Here's what I have so far. As you can see, my understanding of Perl falls apart when I get to the subroutine. Any help would make my day. Thanks.
[CODE=perl]
my @fruitFiles =("apple.html ",... -
Jeff, DOS should change to the directory specified in the perl command. In my case it doesn't. It just stays where it was before running the script. Thanks....Leave a comment:
-
Perl chdir problem
Hello,
I'm having a tough time using chdir in different versions of perl in a dos window (XP). In early versions of Perl 5.x it works just fine. I have a bat file that dynamically sets my perl path to either 5.0.x or to 5.8.8:
Code:path %path%;c:\perl\[whichever]
[code=perl]
$dirLocation ='c:\[whatever]';
...
No activity results to display
Show More
Leave a comment: