Re: can't read in whole file

2002-11-14 Thread John W. Krahn
Paul wrote: > > > if (open SEARCH_FILE, "< $fileName") { > > my $searchData = join "", ; > > close SEARCH_FILE; > > ok, $searchData should be the whole file, but maybe it's the line-based > read you're doing. A less attractive but more eff

RE: can't read in whole file

2002-11-14 Thread Perl
PROTECTED]; [EMAIL PROTECTED] Subject: RE: can't read in whole file You might try after the open but before any io binmode SEARCH_FILE then do your io. Wags ;) -Original Message- From: Perl [mailto:perl@;codyartsupply.com] Sent: Thursday, November 14, 2002 1

RE: can't read in whole file

2002-11-14 Thread Wagner, David --- Senior Programmer Analyst --- WGO
PROTECTED]; [EMAIL PROTECTED] Subject: RE: can't read in whole file Thanks, it's gotten better, but not completely reading yet. It now loads the text-editor opened-and-resaved version of the spreadsheet as a full 10752 characters long. which is good. Unfortunately, the MS-Works s

RE: can't read in whole file

2002-11-14 Thread Perl
file into an array. Wags ;) -Original Message- From: Perl [mailto:perl@;codyartsupply.com] Sent: Thursday, November 14, 2002 13:58 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: can't read in whole file Hi Paul, Thank you for taking the time to help. >> forea

RE: can't read in whole file

2002-11-14 Thread Paul
--- "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> wrote: > Replace local $_ = undef; with local $/ = undef; >This undefines the input record separator which is what you want > when you > want to slurp a whole file into an array. > > Wags ;) DOH C

RE: can't read in whole file

2002-11-14 Thread Wagner, David --- Senior Programmer Analyst --- WGO
13:58 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: can't read in whole file Hi Paul, Thank you for taking the time to help. >> foreach my $fileName (@list) { >> chomp($fileName); >> my $duhFileName = $fileName; >>

RE: can't read in whole file

2002-11-14 Thread Perl
Hi Paul, Thank you for taking the time to help. >> foreach my $fileName (@list) { >> chomp($fileName); >> my $duhFileName = $fileName; >> #okay, I need help with scope too :-) > >You sure you didn't just misspell the variable name? >It's case se

Re: can't read in whole file

2002-11-14 Thread Paul
> foreach my $fileName (@list) { > chomp($fileName); > my $duhFileName = $fileName; > #okay, I need help with scope too :-) You sure you didn't just misspell the variable name? It's case sensitive. > if (open SEARCH_FILE, "

can't read in whole file

2002-11-14 Thread Perl
Hi, I've written a small file-search program, that reads a directory and uses a regex in a loop to find matching files. The problem, is that I can open a file, such as a MS-Works Spreadsheet file in a text editor, and see the plain-text word that I'm searching for nested inside the 'gibberish' w