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
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
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
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
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
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
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
.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
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
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
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
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
...
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
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
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
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
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
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]
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
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
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
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
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
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
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
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
> $^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
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
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
>
>
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
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
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
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"
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
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
35 matches
Mail list logo