User Profile

Collapse

Profile Sidebar

Collapse
jpaterso
jpaterso
Last Activity: May 30 '08, 05:58 PM
Joined: May 29 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • jpaterso
    replied to Array won't print
    in Perl
    Awesome! It works like a charm. I went with the array (because I am used to it and I need to do other things).

    Thanks again. Great forum!
    See more | Go to post

    Leave a comment:


  • jpaterso
    replied to Array won't print
    in Perl
    Thanks,

    I have been out of the tech game for 3 years so I am not sure what version the school district uses (they dumped the linux platform in lieu of windows). I will try you solution tomorrow and see what happens.
    See more | Go to post

    Leave a comment:


  • jpaterso
    started a topic Array won't print
    in Perl

    Array won't print

    Here's the code. When I run it, the array prints fine in the while loop but I get the last person in every array element in the for loop.

    Thanks in advance.



    File:

    Jerry,12
    Lon,11
    Jon,10
    Mike,9

    Perl code (on linux)
    [code=perl]
    #!/usr/bin/perl
    open (FILE, "try.txt");
    $x = 0;
    while(<FILE>) {
    chomp;...
    See more | Go to post
No activity results to display
Show More
Working...