Rob Dixon wrote:
ANJAN PURKAYASTHA wrote:

while (<IN>){

  while (<$in>) {

chomp;
process line here....

write OUT ("$abcd\n");

There is no write function.

I beg to differ:

perldoc -f write
    write FILEHANDLE
    write EXPR
    write   Writes a formatted record (possibly multi-line) to the
            specified FILEHANDLE, using the format associated with that
            file.  By default the format for a file is the one having
            the same name as the filehandle, but the format for the
            current output channel (see the "select" function) may be
            set explicitly by assigning the name of the format to the $~
            variable.


John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to