Google Groups Home
Help | Sign in
Message from discussion write 10 files
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
Ben Morrow  
View profile
 More options May 16, 7:46 am
Newsgroups: comp.lang.perl.misc
From: Ben Morrow <b...@morrow.me.uk>
Date: Fri, 16 May 2008 12:46:48 +0100
Local: Fri, May 16 2008 7:46 am
Subject: Re: write 10 files

Quoth "A. Sinan Unur" <1...@llenroc.ude.invalid>:

> "Ela" <e...@yantai.org> wrote in
> news:g0jl3m$cj$1@ijustice.itsc.cuhk.edu.hk:

> >     open (OFP$k, ">$outfile");

> First off, you should check if open succeeded. Second, what makes you
> think you can use OFP$k where Perl expects a filehandle.

> This looks like a very poor attempt at using symbolic file handles (if
> such a thing even exsits, I don't know).

Yes, it does. A filehandle is just an unquoted string, so

    open "OFP$k", ">$outfile";

'works', FSVO.

(I'm leaving this bit in just in case anyone gets the wrong idea from
this post... :) )

> When you find yourself wanting to index something using an integer, you
> should use an array.

Ben

--
I touch the fire and it freezes me,                      [b...@morrow.me.uk]
I look into it and it's black.
Why can't I feel? My skin should crack and peel---
I want the fire back...                     Buffy, 'Once More With Feeling'


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2008 Google