FileHandles to string
From: Andrew (arobcorp_at_yahoo.com.au)
Date: 07/10/04
- Next message: Andrew: "FileHandles to string"
- Previous message: Joe Smith: "Re: $var = <LINE> ??"
- Next in thread: Jürgen Exner: "Re: FileHandles to string"
- Reply: Jürgen Exner: "Re: FileHandles to string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 10 Jul 2004 10:18:19 -0700
Hi all,
I am having trouble opening a file and displaying its contents. I have
built into the code test strings and tried to display them, and all
have no output (i am assuming that is because they are all
null-pointers), and the code is part of a cgi.
Any help would be appreciated, the code is below, and the lines
commented out are the ones crashing!
open(File, "> /someWhere/My.txt") || die $errorString="can't
open";
@ThreadPairs = <File>;
foreach $items(@ThreadPairs){
($ThreadPosition,$ThreadName)=split(/=/,$items,2);
$fields{$ThreadPosition}=$ThreadName;
}
if($fields{Thread} == 2){ $tempTest="yes"}
$finalCount = "1" + $fields{Thread};
for($PosCount = 1; $PosCount < $finalCount; $PosCount++){
$tempThreadPos = "Thread"."$PosCount";
$tempThreadName = $fields{$tempThreadPos};
}
close(File);
}
thanks All
Andrew
- Next message: Andrew: "FileHandles to string"
- Previous message: Joe Smith: "Re: $var = <LINE> ??"
- Next in thread: Jürgen Exner: "Re: FileHandles to string"
- Reply: Jürgen Exner: "Re: FileHandles to string"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|