Re: Something strange ..

2008-08-31 Thread Gunwant Singh
John W. Krahn wrote: Gunwant Singh wrote: I have written a code to ping remote sites: --- use strict; use warnings; use Socket; use Net::Ping; print 'Enter a hostname/IP '; my $ip,my $host; $ip=; chomp($ip); if ($ip =~ /\b\d{1,3}\.\d{1,3}\.\d{1,3}\

Re: Something strange ..

2008-08-31 Thread Gunwant Singh
Rob Dixon wrote: Gunwant Singh wrote: I have written a code to ping remote sites: --- use strict; use warnings; use Socket; use Net::Ping; print 'Enter a hostname/IP '; my $ip,my $host; $ip=; chomp($ip); if ($ip =~ /\b\d{1,3}\.\d{1,3}\.\d{1,3}\

Something strange ..

2008-08-30 Thread Gunwant Singh
87.248.113.14 with 32 bytes of data: Reply from 87.248.113.14: bytes=32 time=188ms TTL=49 Reply from 87.248.113.14: bytes=32 time=207ms TTL=49 Thanks -- Gunwant Singh. "What is the sound of Perl? Is it not the sound of Wall that people bang their heads against?" -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Sorting!

2008-08-03 Thread Gunwant Singh
Rob Dixon wrote: Gunwant Singh wrote: Hi all, I really appreciate all you guys there for the help you've provided to me in the past. So here I am again with a Question. I have a file with the following entries: 1:17 4:3 4:11 4:13 11:16 12:10 13:2 19:5 20:7 26:12 28:4 33:15 33:17 35

Sorting!

2008-08-02 Thread Gunwant Singh
You will see that the left column is sorted. However the right one isn't. What I want to do is to sort the right one but the corresponding values should remain the same. Notice the repeated values too. Any thoughts? Thanks for you help in advance. Regards. -- Gunwant Singh. "What

Re: anagrams

2008-07-06 Thread Gunwant Singh
Hi, Thnx for your solution, although I did not get the complete solution as explained in your earlier email. Can you please simplify your explanation. Also, would it not be possible w/o making wordlist.unified. Thanks. Dr.Ruud wrote: Gunwant Singh: I have a query regarding regexes

Regex question.

2008-07-04 Thread Gunwant Singh
need to determine length of the words and accordingly, build up the search criteria, so to match exactly the same length of word in the wordlist. Any suggestions? Thanks -- Gunwant Singh. "What is the sound of Perl? Is it not the sound of a wall that people bang their head

Re: File search program!

2008-06-19 Thread Gunwant Singh
Find module. I am stuck in the algorithm actually but before I seek help on this, I would like to try once more. Thanks for your help! Cheers, Gunwant Singh. Paul Lalli wrote: On Jun 19, 12:16 pm, [EMAIL PROTECTED] (Gunwant Singh) wrote: Hi all, I wrote a code that can search any fi

Re: Perl coding - Reinventing the Wheel ?

2008-06-19 Thread Gunwant Singh
Thank you very much! That answers my question. Cheers, Gunwant Singh. Chas. Owens wrote: Build from scratch to teach yourself about things, but use the wheels already invented for real/production work. -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability

Perl coding - Reinventing the Wheel ?

2008-06-19 Thread Gunwant Singh
. Should we build up the code from the very scratch - In that way we learn new ways to build up the same code which may help in coding something similar in a better way, or use the modules whenever/wherever they are available. Any suggestions/opinions will be highly appreciated. Cheers, Gunwan

File search program!

2008-06-19 Thread Gunwant Singh
n) { my $cwd = Win32::GetCwd(); print "\nFile found in $cwd"; } } } ------ Cheers, Gunwant Singh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Program to fetch user information

2008-06-13 Thread Gunwant Singh
Hi there, I am still waiting for any suggestions/recommendations. Cheers. Gunwant Singh wrote: Hi Rob, I have interpolated the server and the user name as in this: /Win32::NetAdmin::UserGetAttributes("servername","myself",my $password,my $passwordAge,my $privilege,my

Re: Program to fetch user information

2008-06-12 Thread Gunwant Singh
for the user is/ I tried with the IP as well, still no luck. What else can be done. Thanks. Rob Dixon wrote: Gunwant Singh wrote: I have written a small Perl script so to fetch information about the user. Here is the code: /1use strict; 2use warnings; 3use Win32::Netadmin;

Program to fetch user information

2008-06-11 Thread Gunwant Singh
entry at C:\Documents and Settings\Myself\Desktop\code\mac-info.pl line 4. Use of uninitialized value in concatenation (.) or string at C:\Documents and Settings\Myself\Desktop\code\mac-info.pl line 5. The homedir for the user is/ I am not sure, what is the problem. Can anyone help me on this? Thank

Reg. Directory listing program

2008-06-06 Thread Gunwant Singh
#x27; *mode* to *0*. What does each bit stand for and why there are 5 bits as compared to UNIX's User-Group-Others bits. So actually 3 questions :) Thank you. -- Gunwant Singh History: --- Hi, I am new to this mailing list and I am very new to PERL. So, please bear with me f

Reg. Directory listing program

2008-06-04 Thread Gunwant Singh
t call method "mode" without a package or object reference at C:\Documents a nd Settings\Myself\Desktop\code\dir-op.pl line 8. *What am I doing wrong! Thanks. -- Gunwant Singh