in reply to Re: running same bit of code twice
in thread running same bit of code twice
I'm interested in the phrasing of the open command:
I habitually use:open FH,"<",$datafile or die "Could not read virtual file";
although I'm aware of the < being an 'open for read only' tag I would use it as follows:open FH, "$datafile" or die "Can't open $datafile: $!";
I wondered if you would talk me through your use of it and why you might consider it necessary to use < at all.open FH, "< $datafile" or die "Can't open $datafile: $!";
Thanks for your help
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: running same bit of code twice
by belg4mit (Prior) on May 04, 2003 at 18:43 UTC |