Do you know where your variables are? | |
PerlMonks |
Use of uninitialized value in pattern match (m//)by chris01010 (Novice) |
on Mar 17, 2015 at 22:26 UTC ( [id://1120387]=perlquestion: print w/replies, xml ) | Need Help?? |
chris01010 has asked for the wisdom of the Perl Monks concerning the following question: I have written a PERL script to read files from directory that the filename contains OT. It then takes each line of each file and prints the first 5 characters before the first occurence of a /. Currently I am getting the error: Use of uninitialized value in string at rowGrab.pl line 43. Use of uninitialized value in pattern match (m//) at rowGrab.pl line 41. Can anyone provide some guidance? Also prior to putting in string matching, I just printed the filename. This however got the error "Out of memory". The directory contains 5487 files and each file averages 119 MB. I understand this is a genuine memory issue, I was just wondering if anyone knew a way round it? Thanks Chris
Back to
Seekers of Perl Wisdom
|
|