Re: doubt in code

2008-08-22 Thread Dr.Ruud
"Irfan J Sayed (isayed)" schreef: Irfan, trim your postings. Cut out any piece of text that is no longer relevant. You quoted all the nonsense that Stewart Anderson thinks he needs to include. Clean up your act. > Agree, but where is the file name?? > $server will just store the server name rig

RE: doubt in code

2008-08-21 Thread Irfan J Sayed (isayed)
Hi, Can somebody please help. Regards Irfan. -Original Message- From: Irfan J Sayed (isayed) Sent: Friday, August 22, 2008 11:12 AM To: 'Stewart Anderson'; beginners@perl.org Subject: RE: doubt in code Agree, but where is the file name?? $server will just store the server

RE: doubt in code

2008-08-21 Thread Irfan J Sayed (isayed)
Agree, but where is the file name?? $server will just store the server name right? Regards Irf -Original Message- From: Stewart Anderson [mailto:[EMAIL PROTECTED] Sent: Thursday, August 21, 2008 8:25 PM To: beginners@perl.org Cc: Stewart Anderson Subject: RE: doubt in code

RE: doubt in code

2008-08-21 Thread Stewart Anderson
> -Original Message- > From: Irfan J Sayed (isayed) [mailto:[EMAIL PROTECTED] > Sent: 21 August 2008 15:49 > To: beginners@perl.org > Subject: doubt in code > > Hi All, > > I have sample code like this: > > #!/usr/bin/perl > > # file: lgetr.pl

doubt in code

2008-08-21 Thread Irfan J Sayed (isayed)
Hi All, I have sample code like this: #!/usr/bin/perl # file: lgetr.pl # Figure 1.2: Read the first line from a remote server use IO::Socket; my $server = shift; my $fh = IO::Socket::INET->new($server); my $line = <$fh>; print $line; As per comment it says that, it prints the first line