Re: regd . Line number printing...

2007-07-10 Thread mayank . ahuja
Hi Paul I don't think so.In my mail I was so much rude , but if you still feel so then I want to apologize. regards Mayank Paul Lalli <[EMAIL PROTECTED]> 07/10/2007 11:14 PM To beginners@perl.org cc Subject Re: regd . Line number printing... On Jul 10, 8:24

regd . Line number printing...

2007-07-10 Thread mayank . ahuja
); But its neither printing line number nor giving any error. regards Mayank =-=-= Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemi

book on perl

2007-07-02 Thread Garg, Mayank IN BOM SISL
Hi all, Can some one suggest me a good book on perl (basics and advanced) Thanks & Regards, Mayank Garg

RE: is require a keyword ?

2007-06-15 Thread Garg, Mayank IN BOM SISL
Thanks Jeff, It helped -Original Message- From: Jeff Pang [mailto:[EMAIL PROTECTED] Sent: Friday, June 15, 2007 10:46 AM To: Subject: Re: is require a keyword ? Garg, Mayank IN BOM SISL 写道: > > > Hi Guys, > > I was going thru a script which ha

is require a keyword ?

2007-06-15 Thread Garg, Mayank IN BOM SISL
Hi Guys, I was going thru a script which had the the lines: require Exporter; require DynaLoader; what does these lines mean Regards, Mayank

extracting line between words

2006-09-14 Thread mayank . ahuja
Hi Perlers... I need to extract line between two words like @line = "The Sun rises in the east and "; Now I want to extract the line from The word to east For tht I am using the following code: #!/usr/bin/perl use warnings; use strict; my @line = "The Sun r

how to change working directory

2006-01-10 Thread Mayank Ahuja
Hi Could you please let me know how to change the working directory without going under through setting the path variable process.I am using the following code.use warnings;use strict;use Cwd;chdir ('/user/bin') or die can not change the directory.if there is only one way then let me know how do we

regd. validation the delimiter(of flat file) is not present in databse..........

2005-10-14 Thread mayank . ahuja
n everything if still some confusion just let me know...all the suggestions r most welcome. Mayank Ahuja Team Member Tata Consultancy Services Limited Ph:- 044-5816 Cell:- 9283199460 Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information con

regd. regular. expression.

2005-10-13 Thread mayank . ahuja
thing is I want to check only alphabets(except those which I just mentioned) or hypen(-) can be pass through this test. I think I made everything clearIf somebody can help me in this matterthen he is most welcome.... with regards n war

Re: regd. executing one perl file inside another perl file

2005-10-06 Thread mayank . ahuja
nning From Within A Perl Program" with thankX n warm regards Mayank Ahuja Team Member Tata Consultancy Services Limited Ph:- 044-5816 Cell:- 9283199460 Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Chris Devers <[EMAIL PROTECTED]> 10/05/2005 12:21 AM Please

regd. executing one perl file inside another perl file

2005-10-04 Thread mayank . ahuja
.which we use in DBI etc. thankX n With warm regards Mayank Ahuja Team Member Tata Consultancy Services Limited Ph:- 044-5816 Cell:- 9283199460 Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or

regd. connectivity to db2

2005-10-03 Thread mayank . ahuja
t test2.pl line 3 Do we have to set some environment variable.for perl in db2. Actually the above program works fine when I login as databse administartor on my unix machine if I login as somebody else then It doesn't work.. and give the above listed error. Mayank Ah

how to check the particular perl module is installed or not on unix machine...............

2005-10-01 Thread mayank . ahuja
Hi Perlers... Could u plz help me how to check in unis machine whether a particular perl module is installed on unix machine or not Mayank Ahuja Team Member Tata Consultancy Services Limited Ph:- 044-5816 Cell:- 9283199460 Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com

regd. cgi -apache

2005-09-19 Thread mayank . ahuja
programming in Perl so need help.. Or I have to install the apache also on my machine? Plz suggest me.. Mayank Ahuja Team Member Tata Consultancy Services Limited Ph:- 044-5816 Cell:- 9283199460 Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information

how to check real no. without including the package and stuff...........

2005-09-08 Thread mayank . ahuja
Mayank Ahuja Assistant System Engineer Tata Consultancy Services Limited Ph:- 044-5816 Cell:- 9283199460 Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com When every thing seems to be coming to ur way u r probably in the wrong lane. Notice: The information contained in this e-mail

Fw: Could [you] [please] tell me how to remove white spacees presentbetween delimiter[s]

2005-09-02 Thread mayank . ahuja
'---'~^ '123PS01D'~^ here delimiter is ~^ '---'~^'123PS01D'~^ Do u see the difference in the two lines In the first one there is space is present i want to remove that one The second is ok.. I think it will clear u in the better way..

Re: syntax Error ..........

2005-09-02 Thread mayank . ahuja
the array it gives a error problem I want to skip through that one but side by side I need string(10) to be at 4th location (if u count from 0) or at 5th location (if u count from 1) when I store the result via push command in some array. Mayank Ahuja Assistant System Engineer Tata

syntax Error ..........

2005-09-02 Thread mayank . ahuja
t "$plus\n"; } Mayank Ahuja Assistant System Engineer Tata Consultancy Services Limited Ph:- 044-5816 Cell:- 9283199460 Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confid

Could u plz tell me how to remove white spacees present between delimiter

2005-09-02 Thread mayank . ahuja
Hi Perlers I have a file like this in which data is abc,def,xyz,mno, means the delimter is comma here but in the string if it comes abc, def, xyz, mno then plz tell me how to remove this white space. Mayank Ahuja Assistant System Engineer Tata Consultancy Services Limited Ph:- 044

can any body tell me how to remove quotes from a name.

2005-08-31 Thread mayank . ahuja
Hi all Could any body tell me how to get mayank from 'mayank' sp. by map or grep command (means I just want to remove the single quotes. tht's it) thankx n with regards Mayank Ahuja Assistant System Engineer Tata Consultancy Services Limited Ph:- 04

`ls -ltr`

2002-11-27 Thread Mayank Ahuja
Hi all, Please help me out with my beginners question: Is there a way I can code an equivalent of `ls -ltr | tail -5` [on UNIX] in perl ? Regards Mayank -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Can IPC work?

2002-07-22 Thread Mayank Ahuja
can come to know of the value of the variable set in B? I don't know anything about IPC...can it work in this scenario? Thanks in advance -- Regards Mayank -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Perl 4 on Linux

2002-05-30 Thread Mayank Ahuja
runs fine with perl 4.0 on solaris. Can somebody please share his perl 4.0 binary (which i know will be very rare) or point us to some sites where we can find more information. Thanks in advance Regards Mayank -- Regards Mayank "The difference between ordinary and extraordinary is

Re: Split

2002-05-22 Thread Mayank Ahuja
36 aupoza528 (v1.1), start Thu 23/5 13:54\nseniorb172.24.142.136 aupoza528 (v1.1), start Thu 23/5 13:54 "; U can use: my @lines = split (/\n/, $str_line); foreach $var (@lines) { my ($user) = split (/\s+/,$var); print "User is :$user\n"; } Cheers Mayank [EM

Re: PerlTK and subroutines

2002-05-21 Thread Mayank Ahuja
ine finishes. For example, &firstFunction; $widget->waitVariable(\$var); &secondFunction; During the last stage of it's execution firstFunction defines $var and hence the processing proceeds from that point ownwards U can also read about: waitVisibility waitWindow Cheers Mayank

Setting limit coredumpsize

2002-05-16 Thread Mayank Ahuja
ray1}; Please help!!! Regards Mayank "The difference between ordinary and extraordinary is that little extra" -Anon -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Tk::Optionmenu

2002-05-13 Thread Mayank Ahuja
. "First" and if i press the Optionmenu should display the last option in the Optionmenu i.e."Fourth". But how can i achieve the same.? Any comments? Any ideas are most welcome. Thanks in advance.. -- Regards Mayank "The d

Re: Generalized uname

2002-05-12 Thread Mayank Ahuja
27;osname'}. I thought perl2exe won't be able to use $^O because the copy of the Perl won't be available during run time But it workedi don't know how Any ideas??? Thanks Timothy. Timothy Johnson wrote: > > Are you SURE you can't use $^O? > > -O

Generalized uname

2002-05-12 Thread Mayank Ahuja
which gives the hostname of the machine on all platforms Is there an equivalent module for determining the operating system (somthing which uses uname on Unix and something else for Windows) Thanks in advance -- Regards Mayank "The difference between ordinary and extraordinary is that li

Re: OS Name

2002-05-09 Thread Mayank Ahuja
So, i use the following code snippet. # In MKS perl on NT this is necessary due to a bug in basename() # It doesn't understand Windows_NT and must be told MSWin32 # or pathnames don't work. use File::Basename; if ($^O eq "Windows_NT") { fileparse_set_fstype("MSWin32

Remote Shell

2002-04-20 Thread Mayank Ahuja
using PERL. Summary: Is there a PERL equivalent of rsh or remsh or rlogin on UNIX? All inputs are highly invited -- Regards Mayank "The difference between ordinary and extraordinary is that little extra" -An

Re: TK madness

2002-04-18 Thread Mayank Ahuja
y book i have read on Perl/Tk, so i'm not sure if this is the best) The book is quite similar to the perldoc but has an excellent chapter explaining geometry managers and also has been arranged in a nice way. Cheers Mayank Timothy Johnson wrote: > > > This request brings up a

Re: TK madness

2002-04-18 Thread Mayank Ahuja
. There is more to it.. For more details, u can refer to perldoc Tk::Canvas I hope this helps Regards Mayank James Taylor wrote: > > I'm trying to develop a user interface for a program I've written - What > I need the program to do is print out the results of the

Perl License

2002-04-15 Thread Mayank Ahuja
? Conditions? Can somebody please give me a basic idea and send me link to details? Thanks. -- Regards Mayank "The difference between ordinary and extraordinary is that little extra" -Anon -- To unsubscribe, e-ma

Tk::grid

2002-04-08 Thread Mayank Ahuja
Hi Group Can somebody help me in locating Tk::grid module? i couldn't find the same on CPAN search site. Thanks in advance. -- Regards Mayank "The difference between ordinary and extraordinary is that little extra"

Directory

2002-04-08 Thread Mayank Ahuja
Hi Group Which module should i use to do tasks like: Determining the number of elements in a directory. Making a new directory. Deleting a directory. Thanks in advance -- Regards Mayank "The difference between ordinary and extraordinary is that little

Directory Dialog Box

2002-04-03 Thread Mayank Ahuja
he same GUI and my application creates the same after warning the user. (Or like windows, the new folder/directory can be created by pressing a button) I strongly feel there must be an existing module for it. Can somebody please help me? -- Regards Mayank "The difference between ordinary

perl executable

2002-04-03 Thread Mayank Ahuja
executable out of perl(/tk) code? Thanks in advance. -- Regards Mayank "The difference between ordinary and extraordinary is that little extra" -Anon -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Date

2002-02-08 Thread Mayank
Hi all Is there a module/or some function to do calculations on date e.g. if today is 1st March, and i want the date for previous day (i.e. 28th or 29th Feb) Thanks in advance Regards Mayank -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

date

2002-02-08 Thread Mayank
Hi all Is there a module/or some function to do calculations on date e.g. if today is 1st March, and i want the date for previous day (i.e. 28th or 29th Feb) Thanks in advance Regards Mayank -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: sort

2002-01-28 Thread Mayank
ll scripting in place of C's syntax. After all it's more intutuive. Thanks once again Regards Mayank "Hanson, Robert" wrote: > > The sort function takes an optional subroutine which is where you can add > you logic for the sort. The subroutine is passed two items from

sort

2002-01-28 Thread Mayank
Hi all i'm a newbie.so this might appear to be an easy one! How can i have an equivalent of following UNIX command in PERL? sort -t "|" -k 11,11 $file1 > $file2 Which means sort file "$file1" on the basis of 11th field with "|" as the delimiter Tha