User Profile

Collapse

Profile Sidebar

Collapse
johntology
johntology
Last Activity: Apr 1 '08, 04:14 PM
Joined: Nov 19 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Gotcha. Thank you both again.

    John
    See more | Go to post

    Leave a comment:


  • 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.
    John
    See more | Go to post

    Leave 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 ",...
    See more | Go to post

  • johntology
    replied to Perl chdir problem
    in Perl
    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....
    See more | Go to post

    Leave a comment:


  • johntology
    started a topic Perl chdir problem
    in Perl

    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]
    Then in I call the perl script which just has this:

    [code=perl]
    $dirLocation ='c:\[whatever]';
    ...
    See more | Go to post
No activity results to display
Show More
Working...