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
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
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
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
--- "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
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;
>>
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
> 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, "