How to save input STDIN into a file

2007-08-06 Thread Sydney
The script working fine. but I like to save output of "$avar="$dir/ $db" into a file. How do I do that? Thanks LC print "which client\n"; my $a = <>; chomp $a; my $db = <>; chomp $db; my $dir="/u1/data/$a"; my $avar="$dir/$db"; $avar="$dir/$db"; print "$avar\n"; -- To unsubscribe, e-mail: [E

Re: print 2 valuable

2007-08-04 Thread Sydney
On Aug 4, 2:45 pm, [EMAIL PROTECTED] (John W. Krahn) wrote: > [EMAIL PROTECTED] wrote: > > I am new in perl. i want print 2 valuable in same line but my script > > it print split into 2 line. if i hard code will work. i dont > > understand why is happen. can some please explain to me thanks, > > >