Re: reading files and scope of $_

2011-02-24 Thread John W. Krahn
D wrote: I ran into something that I need help understanding. In the attached script, subroutine file_proc1 converts all elements of @molec to undef, while file_proc2 does not. adjusting file_proc1 to first slurp the file into an array "fixes it". My best guess (via dum_sub) is that the subrou

reading files and scope of $_

2011-02-24 Thread D
I ran into something that I need help understanding. In the attached script, subroutine file_proc1 converts all elements of @molec to undef, while file_proc2 does not. adjusting file_proc1 to first slurp the file into an array "fixes it". My best guess (via dum_sub) is that the subroutine is cro