Re: regd . Line number printing...

2007-07-11 Thread mayank . ahuja
] (Mayank Ahuja) wrote: cud u plz tell me what wrong in this : Could you please talk like an adult? Not only do you give the impression that you're 10 years old, you are rude to non-native speakers of the English language who could possibly help you. #!/usr/bin/perl use strict; use warnings

regd . Line number printing...

2007-07-10 Thread mayank . ahuja
Hi Perlers cud u plz tell me what wrong in this : #!/usr/bin/perl use strict; use warnings; print Enter the File name \n; my $input_file = STDIN ; chomp($input_file) ; open FH,$input_file or die Can not open the file at $! ; my @lines = FH; while (FH) print $. ; } close(FH); But its neither

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

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

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

2005-10-14 Thread mayank . ahuja
...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 contained in this e-mail message and/or attachments to it may

regd. regular. expression.

2005-10-13 Thread mayank . ahuja
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 warm thankX Mayank Ahuja Team Member Tata

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

2005-10-06 Thread mayank . ahuja
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 respond to Perl Beginners

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

regd. connectivity to db2

2005-10-03 Thread mayank . ahuja
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 Ahuja Team Member Tata Consultancy Services Limited Ph:- 044

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

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

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

2005-09-02 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 Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information

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

2005-09-02 Thread mayank . ahuja
in 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

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

2005-09-02 Thread mayank . ahuja
Ahuja Assistant System Engineer Tata Consultancy Services Limited Ph:- 044-5816 Cell:- 9283199460 Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com - Forwarded by Mayank Ahuja/CHN/TCS on 09/02/2005 09:16 PM - Chris Devers [EMAIL PROTECTED] 09/02/2005 09:03 PM Please respond

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:- 044-5816 Cell

`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]

Perl 4 on Linux

2002-05-30 Thread Mayank Ahuja
Hi group, Due to some unchangeable circumstances we need a perl binary (Version 4.0, preferably patch level more than 36) on Linux (Red Hat). We downloaded the source code and compiled it but we can see some errors (Segmentation Fault) when a script is run using this compiled binary. The script

Re: Split

2002-05-23 Thread Mayank Ahuja
Ur data: aragonm 172.24.142.136 aupoza528 (v1.1), start Thu 23/5 13:54 salibaj 172.24.142.136 aupoza528 (v1.1), start Thu 23/5 13:54 seniorb172.24.142.136 aupoza528 (v1.1), start Thu 23/5 13:54 If $str_line contains one line at a time e.g, $str_line = aragonm 172.24.142.136 aupoza528

Re: PerlTK and subroutines

2002-05-21 Thread Mayank Ahuja
Use waitVariable method of widget $widget-waitVariable(\$var); To have a program wait until a variable is set, call waitVariable. The value of $var must be undefined before u call waitVariable and processing will resume as soon as $var is defined.. U can define $var when the first routine

Setting limit coredumpsize

2002-05-16 Thread Mayank Ahuja
Hi All I'm working on Unix (solaris) I want to set the coredumpsize to 0 On shell (Csh) we run limit coredumpsize 0 Now i want to do the same using Perl script. I cannot use system or backticks (` `) because this will fork off a different shell. I tried using eval but it's not working.

Re: Generalized uname

2002-05-13 Thread Mayank Ahuja
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? -Original Message- From: Mayank Ahuja To: Perl Sent: 5

Tk::Optionmenu

2002-05-13 Thread Mayank Ahuja
Hi Group!! I have an Optionmenu in my Tk application. The Optionmenu has the following enteries [First, Second, Third, Fourth] I also have 2 buttons in my application If i press button 1 the Optionmenu should display the first option in the Optionmenu i.e. First and if i press button 2 the

Generalized uname

2002-05-12 Thread Mayank Ahuja
Hi Group! Is there a module, using which i can determine the Operating System on which my perl script is running? I cannot use $^O as the my script will be an executable (using perl2exe) and therfore the interpreter won't be available during runtime I came across a module Sys::Hostname which

Re: OS Name

2002-05-09 Thread Mayank Ahuja
$^O is *not* the name of the OS on which perl runs, but on which it was built. If you take e.g. ActivePerl, it's binary download is the same for all supported versions of Windows. In MKS perl $^O returns Windows_NT on Windows NT (I think MKS perl is not ActivePerl) So, i use the following

Remote Shell

2002-04-20 Thread Mayank Ahuja
Hi All If somebody can please help me out of it? In one of my applications, I get machine name as input from the user. What my application needs to do is to remote login on this machine and start a daemon. The scripts for running the daemon are ready, but how can i login to a remote machine

Re: TK madness

2002-04-18 Thread Mayank Ahuja
The following has been taken from perldoc Tk::Canvas TEXT ITEMS A text item displays a string of characters on the screen in one or more lines. Text items support indexing and selection, along with the following text-related canvas methods: dchars, focus, icursor, index,

Re: TK madness

2002-04-18 Thread Mayank Ahuja
about a feature of Tk? -Original Message- From: Mayank Ahuja To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: 4/18/02 9:44 PM Subject: Re: TK madness The following has been taken from perldoc Tk::Canvas TEXT ITEMS A text item displays a string of characters on the screen

Tk::grid

2002-04-09 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 -Anon -- To

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 extra