in reply to Re: What is the right way of concatenating strings
in thread What is the right way of concatenating strings
For my work I need read files and generate it in desired format, so I rely mostly on concatination as above. and error that is produced same as u stated. Pls tell me also what all mistakes I have done in this small piece of code.#!/usr/bin/perl -w print"Pls enter the file name\n"; my $in=<STDIN>; open(AA,"$in"); my $input=''; while(<AA>) { my $temp=''; $temp=$_; $input=$input.$temp; } close(AA); open(BB,">out.txt"); print BB $input; close(BB);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: What is the right way of concatenating strings
by GrandFather (Saint) on May 02, 2006 at 11:24 UTC | |
by ikegami (Patriarch) on May 02, 2006 at 21:50 UTC | |
by GrandFather (Saint) on May 02, 2006 at 22:01 UTC | |
by cool (Scribe) on May 04, 2006 at 10:47 UTC | |
by cool (Scribe) on May 02, 2006 at 13:20 UTC | |
by GrandFather (Saint) on May 02, 2006 at 20:25 UTC | |
by Hue-Bond (Priest) on May 02, 2006 at 13:53 UTC |