Re: I LOVE HASH(ES)!!! *<:-D

2009-12-02 Thread Anant Gupta
I second Aimee. Hashes are awesome. On Thu, Dec 3, 2009 at 9:32 AM, wrote: > awesome... I'll have to check that out. Thanks! :-) > > Aimee > > > > - Original Message - > From: Steve Bertrand > Date: Wednesday, December 2, 2009 7:42 pm > Subject: Re: I LOVE HASH(ES)!!! *<:-D > To: Aim

CGI programming

2009-11-30 Thread Anant Gupta
I am not allowed to write to /var/www/cgi-bin/ I am not the root user of my machine Is their any way i can try out my perl cgi programs on this machine( Red Hat Linux) Anant

Re: push coomand on hash variables

2009-11-13 Thread Anant Gupta
} I thought it is a reference to a hash. Is it so? Can we directly define reference variables like this? On Thu, Nov 12, 2009 at 4:06 PM, John W. Krahn wrote: > Anant Gupta wrote: > >> .. >> use strict; >> .. >> >> my %hash; >> my $abc; >&g

push coomand on hash variables

2009-11-12 Thread Anant Gupta
.. use strict; .. my %hash; my $abc; my $count; while(defined($ARGV[$count])) { push(@hash{$abc},$ARGV[$count]); } Can't i use this The error is "Type of arg 1 must be array not hash element ..." Help Anant

Re: foreach loop

2009-11-02 Thread Anant Gupta
Ohh, Thanks for the help On Mon, Nov 2, 2009 at 1:40 PM, John W. Krahn wrote: > Anant Gupta wrote: > >> Hello, >> > > Hello, > > In the foreach loop, without going to the beginning of the loop, i want to >> get the next iteration of data. How do i get it.

foreach loop

2009-11-01 Thread Anant Gupta
Hello, In the foreach loop, without going to the beginning of the loop, i want to get the next iteration of data. How do i get it. eg use strict; open(FILE,"; foreach my $line(@lines) { if($lin =~ m/something/) { #some code # get next data # Without going to

Re: Simple XML to XLS format

2009-10-29 Thread Anant Gupta
Linux. Please tell me for windows as well, if it is very different from what will be used in linux. Regards Anant On Fri, Oct 30, 2009 at 9:46 AM, Ganesh Babu N wrote: > Let me know your OS. > > Regards, > Ganesh > > On Thu, Oct 29, 2009 at 5:09 PM, Anant Gupta > wrote: >

Simple XML to XLS format

2009-10-29 Thread Anant Gupta
Hello, I need to generate tables in an excel file, corresponding to data in an XML file. Can anyone provide me with a simple example using XML::Twig or XML::DOM. I dont have access to CPAN archives, i mean i cannot use them in by system Thanks

Re: Convert Site Name to Dotted IP Address

2009-10-22 Thread Anant Gupta
Thank you. I just used "use strict" and "use warnings" and it worked. Even now I cant figure out what difference can this make :) Thank you for tour time Anant On Thu, Oct 22, 2009 at 5:19 PM, Philip Potter wrote: > 2009/10/22 Anant Gupta : > > Nopes, > > I

Re: Convert Site Name to Dotted IP Address

2009-10-22 Thread Anant Gupta
Nopes, It is the same The '-' minus sign was my mistake. I am using this on Red Hat Linux, but I am not the root user. Will not being the root user make any difference? Thanks On Thu, Oct 22, 2009 at 4:33 PM, Philip Potter wrote: > 2009/10/22 Anant Gupta : > > I wrote >

Convert Site Name to Dotted IP Address

2009-10-22 Thread Anant Gupta
I wrote #!usr/bin/perl use Socket; use constant ADDR => 'www.google.com'; my $name=shift || ADDR; $packed=gethostbyname($name); $dotted-inet_ntoa($packed); print "DOtted Address is $packed"; but it is showing an error "Bad argument length for Socket length in inet_ntoa" ??? Help