] (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
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
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
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
...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
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
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
.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
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
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
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
;
}
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
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
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
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
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 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
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.
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
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
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
$^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
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,
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
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
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
31 matches
Mail list logo