Re: cpan command line

2007-09-28 Thread Srinivas
just hit Enter -srini Bobby wrote: Hi, What is the command to tell cpan to accept the default/suggested values? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Changing CPAN config before initial config?

2007-09-26 Thread Srinivas
Hi Richard, There will be a config.pm file in the cpan module directory, you can change the url list to point it to your local mirrors. Thank You, -srini RICHARD FERNANDEZ wrote: Hi folks, I have a lot of boxes which are behind firewalls. Fortunately, I have a local CPAN mirror that I

perl script to scrape the job sites

2007-09-11 Thread Srinivas
Hi, I want to write a perl script that scrapes various job sites like monster, dice, career builders etc. Given the job id and web site name it should scrape the information and store in a mySQL database. Can you please tell me how to do this , or is there any such script which does this.

Re: calculating time difference with localtime

2007-08-08 Thread Srinivas
perldoc -q How can I compare two dates and find the difference Wagner, David --- Senior Programmer Analyst --- WGO wrote: -Original Message- From: timbo [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 08, 2007 07:03 To: beginners@perl.org Subject: calculating time difference with

Re: Adding text in file written in Perl

2007-08-07 Thread Srinivas
Jeff Pang wrote: -Original Message- From: [EMAIL PROTECTED] Sent: Aug 7, 2007 10:06 PM To: beginners@perl.org Subject: Adding text in file written in Perl Hello, I have written a Perl script that creates the dhcpd.conf and / etc/hosts file for Red Hat Linux. The data is derived

Re: Accessing hash

2007-05-28 Thread Srinivas
Hi, @days{'Jan','Feb'} Hash slice containing ($days{'Jan'},$days{'Feb'}) -extracted from programmin perl 3rd edition -srini jeevs wrote: why is it that when i write my %hash = (jeevan='ingale', sarika='bere' ); my @arr = @hash{jeevan, sarika}; print @arr; prints ingale bere can

Re: Passing multiple mixed arguments to subs

2007-05-24 Thread Srinivas
Hi Ben, You can use shift for this. sub remove_files_from_ftp_server { my $pub_detail = shift @_; my @files = @_; Thank You, -srini Ben Edwards wrote: I am passing a reference to a hash ($publisher) and a array with an unknown number of elements (@files). So the call is

Re: Unable to store the output of a command

2007-05-21 Thread Srinivas
divya wrote: Hi Andy, Thanks for the reply. I tried it out, but still not able to store error msgs. What does 21 mean? This means redirecting standard error to standard output. -srini Is there any other way out. Thanks, Divya Andy Greenwood wrote: On 5/18/07, divya [EMAIL PROTECTED]

applying a regular expression on the continuous output of ping command

2007-05-16 Thread Srinivas
Hi, ping geekcrossing.net|perl -le m/time=(\d+)/;print $1; Can some one help me with the above command -srini -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Re: Reading and matching email ids

2007-04-20 Thread Boga Srinivas
Hi kumar, Try this. [EMAIL PROTECTED]:~/perl$ cat reg.pl #! /usr/bin/perl $id=[EMAIL PROTECTED]; while() { chomp($_);print $_\t; print $id found\n if /$id/; print $id not found\n if ! /$id/; } [EMAIL PROTECTED]:~/perl$ cat mail.txt [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL

Re: Perl: how these two variables are equal numerically?

2007-04-10 Thread Boga Srinivas
Hi Hoffman, When you are trying to do a numeric comparsion on strings. The interpreter will try to convert them to numbers and then do a comparsion. if it cannot convert to numbers they are made 0's and then it will compare. for more info please refer to this url:

Re: scalar %hash

2007-03-30 Thread Boga Srinivas
Hi, This is the number of buckets in use and the total number of buckets in the hash. For more info please refer to the following url: http://www.perlmonks.org/?node_id=173677 -srini jonatan perry wrote: Hi you all :-) my name is Jonatan, I am new it this lists. I was wondering, why do

Re: sending output to file and terminal

2007-03-29 Thread Boga Srinivas
priya wrote: Hi, Thanks for your prompt reply, I have no idea how to use perl modules. Could you please help. I tried using use IO::Tee; use IO::Handle; but i got an error saying Can't locate IO/Tee.pm in @INC () please help On 3/29/07, *Boga Srinivas* [EMAIL PROTECTED] mailto

Re: sending output to file and terminal

2007-03-28 Thread Boga Srinivas
Hi lakshmi, I think we can use the Tee module for that. http://search.cpan.org/~dagolden/Tee-0.13/lib/Tee.pod -srini lakshmi priya wrote: Hi all, I have written a perl script that prints the output to the terminal. I also want to write the output to a file. So, what I have done is

help with the regular expression

2007-03-22 Thread Boga Srinivas
Hi, I am trying to capture the data between 2 patterns. The following is the code snippet. $str=hello: 0 fj gerkjiuiojijgre kgoerkgop hello: 1; $str =~ /hello:\s0(.*)hello:\s1/; $title = $1; print $title; But this does not work. Can any one help me ~Regards Srini -- To

forking in NT

2002-02-13 Thread srinivas krish
as to how the script can be made to run in UNIX and DOS(I am using cygwin32 for NT)? Regards srinivas Looking for a job? Visit Yahoo! India Careers Visit http://in.careers.yahoo.com -- To unsubscribe, e-mail: [EMAIL

Forking in NT

2002-02-13 Thread srinivas krish
as to how the script can be made to run in UNIX and DOS(I am using cygwin32 for NT)? Regards srinivas Looking for a job? Visit Yahoo! India Careers Visit http://in.careers.yahoo.com -- To unsubscribe, e-mail: [EMAIL

error messages

2002-02-02 Thread srinivas krish
how this can be done in Perl? Srinivas Looking for a job? Visit Yahoo! India Careers Visit http://in.careers.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

execution directory

2002-01-24 Thread srinivas krish
script from directory B, it does not run because the relative paths are not valid. How can I run this script from directory B without necessitating changes in paths. regards srinivas Looking for a job? Visit Yahoo! India

Multi threading in Perl

2002-01-22 Thread srinivas krish
down the server after the client processes are over? Also how do we ensure that the client starts after the server has started.(do we need to sleep the server process for a while) Regards srinivas Looking for a job? Visit

pattern match

2001-12-28 Thread Srinivas Reddy
Hi Here i have two pattern match statements can some one tell me whether the two are same or not. match_pattern = {,\s*,fld,(\s+\d+)(\s+\d+)(\s+\d+)\s*,}; changed to the following match_pattern = {,\s*,fld,(\s+\d+){3}\s*,}; is it same or different i think they are not same... thanks srini

automatic FTP not using NET:FTP module

2001-07-11 Thread srinivas . s
Hi, I have to automate ftp process using perl or shell scripts. At the moment I cannot install NET:FTP class. So any pointers for me on how do this. thanks, vas ___ Send a cool gift with your E-Card

calling a Java class and also its memeber functions fromPerl.

2001-05-03 Thread Srinivas Samavedam
Hi, My perl code has to execute a couple of methods provided by a Java Class (Object). Can I do that? if so, how?. I am runing PREL 5.0 on Unix and Java 1.1.3 thanks in advance, srinivas