Loading ...
Sorry, an error occurred while loading the content.

Help with pulling out of files into an array?

Expand Messages
  • Nathan E
    Hello once again. I m trying to pull data from two seperate files into arrays (splitting on spaces) and then working with these arrays. It s just not working
    Message 1 of 1 , Aug 28, 2003
    • 0 Attachment
      Hello once again.

      I'm trying to pull data from two seperate files into arrays
      (splitting on spaces) and then working with these arrays. It's just
      not working out for me though. Here's what I tried so far (after
      assigning filehandles and opening files etc.);

      ##################################

      while ( <$SF> ) {
      chomp $_;
      @stemmedwords = split / /, $_;
      }
      while ( <$USF> ) {
      chomp $_;
      @unstemmedwords = split / /, $_;
      }
      print @stemmedwords;

      ###################################

      That print doesn't work.. why? This means I can't access any of this
      for the rest of my program. I need to..

      Can anyone help?

      Thanks!

      -- Nathan
    Your message has been successfully submitted and would be delivered to recipients shortly.