note
koolgirl
<p>Nice input [GrandFather], however, I'm a little perplexed about your example ..</p><code>open my $ranIn, '<', $logFileName or die "Open '$logFileName' failed: $!\n";</code>..
<p>Where is the filehandle that's being created, is that in a variable ($ranIn) as well as the file name ($logfilename)? The syntax is a bit off as to what I'm used to, but that part I'm figuring out, for instance my open statement would look like this...</p>
<code>open (IN, "$logfilename") || die "Open '$logfilename' failed: $!\n";</code>
<p> So, I'm thinking the only real difference is that you've got the filehandle, IN, in $ranIn, and you're explicitly using "<" to mean input file rather than rely on default, am I correct about that, and if so, what are the benefits of opening the file this way?</p>
<p> By the way, I know you explained some of why you did it this way in the post, but I'm just not really understanding exactly what your reasons are, sorry, not too quick on the uptake some times...:)</p>
917531
917554