Re: regd . Line number printing...

2007-07-10 Thread mayank . ahuja
am, [EMAIL PROTECTED] (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/pe

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 = ; chomp($input_file) ; open FH,$input_file or die "Can not open the file at $!" ; my @lines = ; while () print $. ; } close(FH); But its neither printi

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
... with regards Mayank 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 PROTECT

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
Hi All, Please go through the following scenario: A perl script has been invoked from shell A. Within the perl script, I open a new terminal (say B) allowing the user set a particular variable to his choice. The user sets the variable in this terminal and will exit the terminal so that the perl

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-22 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 fini

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. Pro

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 the Optionmenu should display the first option in the Optionmenu i.e. "First" and if i press the Optionmenu

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
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 g

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 usin

Re: TK madness

2002-04-18 Thread Mayank Ahuja
the question to members of this list: What resource do you > use when you need to learn 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 > >

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, in

Perl License

2002-04-15 Thread Mayank Ahuja
Hi Group, I have an application which uses Perl and many modules. The application is like an installer for my other programs (not written in Perl). Since the whole bundle is a commercial package, which all licenses do i need to get for Perl (I heard of something like GNU license). Is it free? Co

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" -Anon -- T

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"

Directory Dialog Box

2002-04-03 Thread Mayank Ahuja
Hi Group! This is related to perl/tk (basically PERL with Tk module). In my application i need to give a browse button. When the user clicks on this button, another window pops up and shows him the directory structure. The user either selects a directory (which can be any levels below the top le

perl executable

2002-04-03 Thread Mayank Ahuja
Hi All We are using perl/tk to make an application. The application code spans on various files. Is there a way in which the whole code can be converged to one executble file so that we do not need to ship all the files to the user? To put it other way, is there a method to make an integrated exe