Re: Help on chomp()

2006-08-22 Thread Dr.Ruud
Mazhar schreef: > I tried with your input above but i still get one character at the > beginning missing.. As said, it is probably not missing, but just overwritten on your screen, by the space in your print. #!/usr/bin/perl use strict ; use warnings ; my $fn = $ARGV[0] ; open my $fh,

Re: Help on chomp()

2006-08-22 Thread Tom Phoenix
On 8/22/06, Mazhar <[EMAIL PROTECTED]> wrote: > >> From the output i see the first character is missing in the output.. That could be caused by something erasing the first character after it's output to your screen. Send the output to a file, inspect the file (with 'hexdump -c', perhaps), and

Re: Help on chomp()

2006-08-22 Thread Mazhar
On 8/22/06, John W. Krahn <[EMAIL PROTECTED]> wrote: Mazhar wrote: > Dear Frndz, Hello, > I am writing the below code and i am facing a problem in chomp (its an > HP UX Box) > > Code > > #!/usr/bin/perl > > use strict; > use warnings; > my $file_

Re: Help on chomp()

2006-08-21 Thread John W. Krahn
Mazhar wrote: > Dear Frndz, Hello, > I am writing the below code and i am facing a problem in chomp (its an > HP UX Box) > > Code > > #!/usr/bin/perl > > use strict; > use warnings; > my $file_name=$ARGV[0]; > open(FILE,"$file_name") || die "Not

Re: Help on chomp()

2006-08-21 Thread Xavier Noria
On Aug 21, 2006, at 8:51 PM, Mazhar wrote: use strict; use warnings; my $file_name=$ARGV[0]; open(FILE,"$file_name") || die "Not been Accessed" ; No quotes needed around $file_name there. @host_array=; That variable was not declared before, so that script does not run because it does not

Help on chomp()

2006-08-21 Thread Mazhar
Dear Frndz, I am writing the below code and i am facing a problem in chomp (its an HP UX Box) Code #!/usr/bin/perl use strict; use warnings; my $file_name=$ARGV[0]; open(FILE,"$file_name") || die "Not been Accessed" ; @host_array=; close(FILE);