Doubt in Perl CGI

2008-07-16 Thread Prabu Ayyappan
h the APACHE or some include. Please help. Thanks, Prabu Explore your hobbies and interests. Go to http://in.promos.yahoo.com/groups/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/

Passing Creadentials and parameters through http headers

2008-05-07 Thread Prabu Ayyappan
'}; $ua->credentials($url, 'TESTREALM', 'username' => 'password'); my $res = $ua->post($url, $in); print Dumper $res->content; Please guide me, I want to Pass both credentials and parameters through headers. Thanks, Prabu Unlimited

Passing value for a GET Method

2008-04-08 Thread Prabu Ayyappan
TP::Request->new(GET => $url); $req->content("user=json%3A%5B%27testuser%27%5D"); When am passing the value through the Query String it is working http://mylink?user=json%3A%5B%27testuser%27%5D $req = HTTP::Request->new(GET => $url); Please help me, How to pass value through t

Re: String To Hash Conversion

2008-04-06 Thread Prabu Ayyappan
- Original Message From: Gunnar Hjalmarsson <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Saturday, April 5, 2008 11:22:41 PM Subject: Re: String To Hash Conversion Prabu Ayyappan wrote: > I want to convert a string into a Hash data structure > > For Exam

String To Hash Conversion

2008-04-04 Thread Prabu Ayyappan
' => '543','21' => '111','Client' => '543','chat' => '111'}] >From CPAN I got a module called Convert/PerlRef2String http://search.cpan.org/~kaili/Convert-PerlRef2String-0.03

Re: Hash & CSV

2008-03-18 Thread Prabu Ayyappan
$open_mode = 'r'; # Open file in read/update mode my $table = adTie( $format, $data, $open_mode,); print Dumper %$table; Hope this helps. Best Regards, Prabu Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ

Re: how to search manual for "use strict"

2008-03-13 Thread Prabu Ayyappan
o I search the perl manual for "use strict" Thanks Hello, Are you looking for perldoc strict Best Regards, Prabu Be a better friend, newshound, and know-it-all with Yahoo! Mobile

Re: Hash & CSV

2008-03-13 Thread Prabu Ayyappan
sh = ( %hsh, (split(/,/, $_))[1,2] ) while ( ); print Dumper \%hsh; Hope this helps, Thanks, Prabu Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now

Optimization in PERL

2008-01-02 Thread Prabu Ayyappan
Hi All, Below are some of the way to optimize the perl code. You can add more to this if you have something more. 1) use a reference instead of the variable directly Use reference in passing large arrays in a function call. Because without a reference it will copy the entire array or hash onto th

Different way of getting Standard input

2007-12-31 Thread Prabu Ayyappan
Hi All, What is the difference in Accepting the following form of standard input? 1) $a = ; 2) $b = ; 3) $c = <>; Now check, print $a $b $c; What is actually happening? Will this be written to some standard input file? If so In windows where this will be written? Thanks, Prabu.M.A

Re: undefined symbol: Perl_sv_2iv_flags

2007-10-24 Thread Prabu Ayyappan
Hi Siva, I doubt the problem is with the version of perl you are using. The symbol Perl_sv_2iv_flags may be introduced with the new version of perl Try with Perl version is: v5.8.9 - Original Message From: sivasakthi <[EMAIL PROTECTED]> To: beginners perl Sent: Wednesday, October 24,

Re: PArsing tables of web page directly on the web.

2007-10-24 Thread Prabu Ayyappan
Hi Siva, Leave the perl script and first try the url in your browser. If it works fine means then the code will get you the HTML contecnt of that page. Thanks and Regards, Prabu.M.A - Original Message From: Siva Prasad <[EMAIL PROTECTED]> To: beginners@perl.org Sent: Wednesday, Octob

Re: New to Perl

2007-08-11 Thread Prabu Ayyappan
Hi, You can get the ppms from the below links, http://trouchelle.com/ppm/ hope this help, Thanks, Prabu.M.A Jeff Pang <[EMAIL PROTECTED]> wrote: -Original Message- >From: Gladstone Daniel - dglads >Sent: Aug 10, 2007 9:39 PM >To: beginners@perl.org >Subject: New to Perl > >Good Mo

Re: XML to inMemory Hash

2007-08-04 Thread Prabu Ayyappan
nce it is reading the whole file each time to parse the node based on the ID.It is taking lot of time.I need to read a 100MB file each time to take the node. Thanks in advance, Prabu Jenda Krynicky <[EMAIL PROTECTED]> wrote: From: Prabu Ayyappan > Thanks for the valuable input

Re: XML to inMemory Hash

2007-08-04 Thread Prabu Ayyappan
ng the whole file each time to parse the node based on the ID.It is taking lot of time. Thanks in advance, Prabu Jenda Krynicky <[EMAIL PROTECTED]> wrote: From: Prabu Ayyappan > Thanks for the valuable inputs, > > I am planning to solve my memory issue by making th

Re: XML to inMemory Hash

2007-08-03 Thread Prabu Ayyappan
after processing that chunk i will purge my memory (purge in XML::Twig) Thanks in advance, Prabu Jenda Krynicky <[EMAIL PROTECTED]> wrote: From: Rob Dixon > Prabu Ayyappan wrote: > > > > I want to convert a huge XML file into an inMemory Hash. > > > > I

XML to inMemory Hash

2007-07-31 Thread Prabu Ayyappan
to memory ? Is there any benchmarks available ? Please guide me. Thanks in advance, Prabu - Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge to see what's on, when.

Re: missing values from files

2007-07-29 Thread Prabu Ayyappan
l have the same number of lines. Thanks, Prabu Irenta <[EMAIL PROTECTED]> wrote: On Jul 29, 7:08 pm, [EMAIL PROTECTED] (Irenta) wrote: > Hello all! > > I wrote a script that reads data from different files and put it all > together in one new file in columns. Onc

Re: Help with Regex (UserName, Email)

2007-07-26 Thread Prabu Ayyappan
. Thnx Prabu Jeff Pang <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > Hello! > > Help with Regex, Thanks in avance! > > > 1. Validation of Name > > Enable ALL keys on keyboard EXCEPT 0, 1, 2., > 9 > Change to uppercase

Re: perl-mysql...

2007-07-25 Thread Prabu Ayyappan
Hi Rupesh, Can you explain your problem scenario a little more briefly. So that it may help in understanding the problem clearly, For Example, My input is like I am expecting this output. What you tried to achieve your output.. Regards, Prabu "[EMAIL PROTECTED]" <[EMAIL PROT

RE: syntax error of some sort?

2007-07-04 Thread Prabu Ayyappan
ents passed to the sub-routine. Hope this help you. Thanks, Prabu "Joseph L. Casale" <[EMAIL PROTECTED]> wrote: Heh, Clearly I need to sleep! This doesn't even work either? #!/usr/bin/perl -w @list = (Exchange,Filter,DNS,Domain) sub stop_it { $vm = $_[0]

RE: syntax error of some sort?

2007-07-04 Thread Prabu Ayyappan
ents passed to the sub-routine. Hope this help you. Thanks, Prabu "Joseph L. Casale" <[EMAIL PROTECTED]> wrote: Heh, Clearly I need to sleep! This doesn't even work either? #!/usr/bin/perl -w @list = (Exchange,Filter,DNS,Domain) sub stop_it { $vm = $_[0]

RE: formatting a string

2007-07-03 Thread Prabu Ayyappan
ior:url(#default#VML);} .shape {behavior:url(#default#VML);} Yup, lol… Wish I understood this! What is the line that does the search called? What do I look up to read up on this? Thanks! jlc From: Prabu Ayyappan [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 03, 2007 10:55

Re: formatting a string

2007-07-03 Thread Prabu Ayyappan
A quick solutionMay be you can enhance it more as you like.. @discarr = ('/vmfs/volumes/467f06a5-7d59c067-35cb-0007e9153886/AN-DC (Win2003 Ent x64)/AN-DC (Win2003 Ent x64).vmx','/vmfs/volumes/467f06a5-7d59c067-35cb-0007e9153886/AN-DC (Win2003 Ent x64)/Disc 1.vmdk','/vmfs/volumes/467f06

Re: character Encoding in perl

2007-07-03 Thread Prabu Ayyappan
Its not even being displayed in by browser.The UTF-8 Character i meant is the square characters in the Link http://www.tony-franks.co.uk/UTF-8.htm Prabu Ayyappan <[EMAIL PROTECTED]> wrote: Hi, I am using XML::Simple for converting the XML into a hash. use Unicode::String q

character Encoding in perl

2007-07-03 Thread Prabu Ayyappan
Hi, I am using XML::Simple for converting the XML into a hash. use Unicode::String qw(utf8); use XML::Simple; #use Data::Dumper; $XML = "äT©imes"; $u = utf8($XML); $XML = $u->utf8; $myHash = XMLin($XML); #print Dumper($myHash); The above code works fine... But the problem i

character Encoding in perl

2007-07-03 Thread Prabu Ayyappan
Hi, I am using XML::Simple for converting the XML into a hash. use Unicode::String qw(utf8); use XML::Simple; #use Data::Dumper; $XML = "äT©imes"; $u = utf8($XML); $XML = $u->utf8; $myHash = XMLin($XML); #print Dumper($myHash); The above code works fine... But the problem i

Re: Conditional question

2007-07-02 Thread Prabu Ayyappan
You can even do like this $var1 == 0 && $var2 == 1 ? print "hai" : print "bye"; Thanks and Regards, Prabu.M.A "Joseph L. Casale" <[EMAIL PROTECTED]> wrote: I want to script an "if" based on two conditions, var1=0 and var2=1. Is there some quicker way to write this in one "if" stateme

Re: book on perl

2007-07-02 Thread Prabu Ayyappan
Hi, There is some good stuffs in the below link. http://www.unix.org.ua/orelly/ Thanks, Prabu "Garg, Mayank IN BOM SISL" <[EMAIL PROTECTED]> wrote: Hi all, Can some one suggest me a good book on perl (basics and advanced) Thanks & R

Re: processing XL using Win32::OLE

2007-06-28 Thread Prabu Ayyappan
Hi Alok, Hope the examples in the below links help your needs. For opening and reading an XL(Excel) use strict; use Win32::OLE qw(in with); use Win32::OLE::Const 'Microsoft Excel'; $Win32::OLE::Warn = 3;# die on errors... # get already active Excel

Re: printing content of found file

2007-06-28 Thread Prabu Ayyappan
Hi, Hope you can find your solution from the following two approaches Approach I #!/usr/bin/perl while (<*>) { if ($_ =~ /note/){ open(FH, "$_"); @fcontent = ; print @fcontent; close(FH); } } APPROACH II opendir(CURRENT,"."); @list = readdir(CURRENT); clos

Re: printing content of found file

2007-06-28 Thread Prabu Ayyappan
Hi, Hope you can find your solution from the following two approaches Approach I #!/usr/bin/perl while (<*>) { if ($_ =~ /note/){ open(FH, "$_"); @fcontent = ; print @fcontent; close(FH); } } APPROACH II opendir(CURRENT,"."); @list = readdir(CURRENT); clos

Re: printing content of found file

2007-06-28 Thread Prabu Ayyappan
Hi, Hope you can find your solution from the following two approaches Approach I #!/usr/bin/perl while (<*>) { if ($_ =~ /note/){ open(FH, "$_"); @fcontent = ; print @fcontent; close(FH); } } APPROACH II opendir(CURRENT,"."); @list = readdir(CURRENT); clos

Re: XML Parsing

2007-06-26 Thread Prabu Ayyappan
Hi All, XML::Simple XML::twig XML::Myxml XML::Rules XML::path all these do the XML parsing,But which one is the efficient and stable one to parse a large XML file. Thanks, [EMAIL PROTECTED] Mike Blezien <[EMAIL PROTECTED]> wrote: - Original Message - From: "Karjala" To: Cc: "Mike

Re: XML Parsing

2007-06-24 Thread Prabu Ayyappan
Hi, Have you tried XML::XPath for this one.It may help you. Thnx and Rgds, [EMAIL PROTECTED] Mike Blezien <[EMAIL PROTECTED]> wrote: I need to parse a fairly large XML response file and would like some suggestions on which XML module would work the best. We've been using the XML::Simple modul

Re: Regarding file handling

2007-06-21 Thread Prabu Ayyappan
Hope this helps you. use strict; use warnings; open my $fh, '<', "infile.txt" or die $!; open my $ofh, '>', "outfile.txt" or die $!; local $/ = "};"; my %printed; my @a = <$fh>; my @b = (); foreach(@a){ if ($_ =~ m/(.*?)\_T\n/){ my $tomatch = $1; my $cnt = grep /$toma

Re: Problems with arrays

2007-06-20 Thread Prabu Ayyappan
Hi, Hope this is what you are expecting. #!/usr/bin/perl -w ($old_header,$old_atoms,$old_bonds) = mol2_read('prabu'); print "@{$old_header} \n @{$old_atoms} \n @{$old_bonds}"; sub mol2_read { @mol2_header = ('prabu1','prabu12'); @

Re: Problems with arrays

2007-06-20 Thread Prabu Ayyappan
Hi, Hope this is what you are expecting. #!/usr/bin/perl -w ($old_header,$old_atoms,$old_bonds) = mol2_read('prabu'); print "@{$old_header} \n @{$old_atoms} \n @{$old_bonds}"; sub mol2_read { @mol2_header = ('prabu1','prabu12'); @

Re: Problems with arrays

2007-06-20 Thread Prabu Ayyappan
Hi, Hope this is what you are expecting. #!/usr/bin/perl -w ($old_header,$old_atoms,$old_bonds) = mol2_read('prabu'); print "@{$old_header} \n @{$old_atoms} \n @{$old_bonds}"; sub mol2_read { @mol2_header = ('prabu1','prabu12'); @

Re: Polyline

2007-06-14 Thread Prabu Ayyappan
Hi, The GD module may not be installed properly. if you are using active perl then did you install the module via ppm: C:\> ppm ppm> install GD if you didn't use activestate, then using cygwin. perl -MCPAN -e 'install GD" if you are get installed the module in some other path the

Re: PERL arrays

2007-06-08 Thread Prabu Ayyappan
you can use the Data::Dumper module to see the four dimension array values. use Data::Dumper; my @a = ( [ [ [ "0,0,0,0", "0,0,0,1" ], [ "0,0,1,0", "0,0,1,1" ], [ "0,0,2,0", "0,0,2,1" ],

Re: doubt in quote-like operators

2006-08-06 Thread Prabu
anand kumar wrote: hi all, I could not understand clearly the functions qw(),qq(),qr(),qx(),q(),quotemeta(). I have read the explanation for these functions in the perl documentation but i could not get idea of where exactly we can use these functions. So please send some other lin

Re: file help

2006-08-03 Thread Prabu
Sayed, Irfan (Irfan) wrote: Hi All, I did as follows but still not getting output in a file. plz help #/usr/atria/bin/Perl -w use strict; use warnings; my $CT = "/usr/atria/bin/cleartool"; my @vob_list = `$CT lsvob -s`; my $fname = "/tmp/vob_trigger"; open FILE,">>",$fname or die

Re: Syntax help with variable quotes

2006-07-31 Thread Prabu
Grant wrote: Can someone tell me how to turn this line (which works): open(LABEL,">/path/to/the/file.gif"); into something like this: open(LABEL,">/path/to/the/$file.gif"); The gif file should be named according to the value of the $file variable. I never know what to do with quotes in these

Re: need to return exit code

2006-07-31 Thread Prabu
Gregory Machin wrote: Hi My perl script is called by a bash script, used in a compile / build env. But the bash script is not seeing my script's exit and is timming out and continuing ... How can I pass a standard exit code 0 = success 1 = fail to the operating system / calling script. Many Tha

Re: sending output to file

2006-07-27 Thread Prabu
Sayed, Irfan (Irfan) wrote: Hi All, I need to send / print / write the output of one command to a file through perl script can anybody plz help. Regards Irfan. Hope this helps perl -e 'print `command > file`;' Example: perl -e 'print `ls -l > output`;' -- Prabu.M.A When I was b

Re: File handling using CGI

2006-07-26 Thread Prabu
I BioKid wrote: One simple question - I need to accept a file from the user and to store it as temp1. then I need to give this file as an input of another program : I wrote a script like this, but it is not working : Help ? #!/usr/bin/perl -w use CGI; my $q = new CGI; my $file = $q->param('file'

Re: command execution

2006-07-25 Thread Prabu
Sayed, Irfan (Irfan) wrote: Hi All, I am executing following command ` $MT chreplica`; I need to find out wheather this command is executing properly or not. If it's executing properly then i need to print the message saying that " command executed successfully" Can anybody please hel

Re: write out filenames of files existing on a filesystem into afile

2006-07-19 Thread Prabu
Nishi Bhonsle wrote: Hi: How do I look for the string in the following file so that i can insert something between the tags insert some bla text here in the following file? http:/

Re: Perl One-Liners

2006-07-15 Thread Prabu
Dr.Ruud wrote: Chandru schreef: Prabu: I am a perl user as well as i works on some sed scripts.I am also a subscriber of "sed-users".In that list,people maintain the sed one-liners in the name. "HANDY ONE-LINERS FOR SED" People in the list will get a mail re

HANDY PERL ONE-LINERS

2006-07-14 Thread Prabu
Hello moderator et all, I am a perl user as well as i works on some sed scripts.I am also a subscriber of "sed-users".In that list,people maintain the sed one-liners in the name. "HANDY ONE-LINERS FOR SED" People in the list will get a mail regularly with the one-liners in the name.We can a

Re: Check whether a string exists

2006-07-12 Thread Prabu Ayyappan
n server_bin.files" if /server_bin\.files/; > > -- > WC (Bill) Jones -- http://youve-reached-the.endoftheinternet.org/ > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > <http://learn.perl.org/> <http://learn.perl.org/first-response> > > > -- Regards Prabu M A

Re: nohup using perl

2006-07-10 Thread Prabu
Hello Mahdi, I Don't know whether this is your requirement.But you can run the nohup command using system() in perl. system("nohup YourCommand"); Sorry,if this is not what you expected. -- Prabu.M.A When I was born I was so surprised I didnt talk for a period and half

Re: Perl's system "[OS_COMMAND]"

2006-07-05 Thread Prabu
Hello Ben, Hope this is what u expected #!/usr/bin/perl system("cat /etc/hosts"); print `cat /etc/hosts`; $? contains the status returned by the last pipe close, backtick(``) command or *system* operator. -- Prabu.M.A When I was born I was so surprised I didnt talk for a period and

Re: Script Required to Check a range of IP's

2006-06-29 Thread Prabu
Hello, Hope this is what you need Input File --- test.txt 172.16.1.194 172.16.1.20 172.16.1.200 172.16.1.34 Program to check active or not -- pingpro.pl #!/usr/bin/perl use strict; use warnings; use Net::Ping; my $file_name=$ARGV[0]; my $line; my @host_array; open(FILE,"$file_name") || die "

Re: Trying to add hyperlink

2006-06-22 Thread Prabu
Message- From: Prabu [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 12:06 PM To: Nath, Alok (STSD) Cc: beginners@perl.org Subject: Re: Trying to add hyperlink Hello, Hope this is your need... #!/usr/bin/perl -w use warnings ; use CGI qw/:standard/; print header, start_html("

Re: Trying to add hyperlink

2006-06-21 Thread Prabu
Hello, Hope this is your need... #!/usr/bin/perl -w use warnings ; use CGI qw/:standard/; print header, start_html("Stsd ILO Links"), h1("Stsd ILO Links") ; print table({-border=>undef,,-width=>'75%', -height=>'70%'}, caption(strong('Web Page Under construction?')), Tr({-align=>CENTER,-valign=

Re: Problems with HTML::Template

2006-06-20 Thread Prabu
my $template = HTML::Template->new(filename => 'templ.tmpl'); # fill in some parameters $template->param(name => "Prabu"); $template->param(example => "For Template"); # send the obligatory Content-Type and print the template output print "Content-

Re: using (sharing) variables between perl files

2006-06-19 Thread Prabu
$name="prabu"; $cat file2.pl #!/usr/bin/perl require "file1.pl"; print $name."\n"; $ perl file2.pl prabu -- Prabu.M.A -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: Term::Readline

2006-06-16 Thread Prabu
the function in http://search.cpan.org/dist/Term-ReadLine-Gnu/Gnu.pm hope will help u to get some idea. -- Prabu -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: PERL CGI drop down list

2006-06-16 Thread Prabu
Mark Martin wrote: Thanks Prabu , Works great. I'm not having any luck finding good documentation on this so I'll throw 2 more questions at you if that's okay: Is there a method for setting the selected value as with the html below? Also, is it possible to display meaningful

Re: About Encryption/ Decription

2006-06-16 Thread Prabu
kilaru rajeev wrote: Hi, Please tell me how can we encrypt or decript file. Please give me the information regarding this. Regards, Rajeev Try out with the modules available in http://search.cpan.org/~aar/Module-Crypt-0.04/Crypt.pm Module::Crypt -- Prabu -- To unsubscribe, e-mail: [EMAIL

Re: About Encryption/ Decription

2006-06-16 Thread Prabu
.pm> *Module::Crypt* -- Prabu -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>

Re: PERL CGI drop down list

2006-06-16 Thread Prabu Ayyappan
up_menu(-name=>'dropdown',-values=>['one','two','three','four']); print $p->end_html; -- Prabu M A

Re: Help Required on the Below Script

2006-06-14 Thread Prabu Ayyappan
nd the error output.. Regards Mazhar Hope this wil work (place a dot before \n(concatenation) in the print) #!/usr/bin/perl use strict; use warnings; my $file_name="XXX.txt"; open(FILE,"$file_name") || die "Not been Accessed"; while () { print $_."\n"; #place a dot before \n(concatenation) } -- Prabu M A

Re: CGI script not showing the textbox

2006-06-14 Thread Prabu Ayyappan
("flavour"); print header; # here's a comment. print the header print start_html("Alok's Page"),h1(" Paragraph... !"); if ($favourite){ print q("Your favourite is : $favourite."); }else { print hr, start_form ; print "Please select: ",textfield("flavour","mint"); #Remove the q in print print end_form, hr ; } -- Prabu M A

Re: How to create a new browser window using CGI

2006-06-08 Thread Prabu Ayyappan
print " What is your major ",$query_obj->popup_menu(-name=>'menu_name',-value=>[EMAIL PROTECTED]); print $query_obj->p,$query_obj->submit; print $query_obj->end_form; } else{ my $name=($query_obj->param('text_field') or ''); print $query_obj->p,"This is your name $name","\n\n"; print $query_obj->p; my $major=($query_obj->param('menu_name') or ''); print "This is your major $major "; } print $query_obj->end_html; exit; -- Prabu M A

Re: Matching pattern in multiple lines

2004-04-07 Thread prabu
alce is donw with the command inside file operation; while (){ s/\Q$pattern\E/$own/m; How to do this? Prabu. "Rob Dixon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Prabu wrote: > > > > In pattern matching,I want to match a pattern in multipl

Matching pattern in multiple lines

2004-04-07 Thread prabu
attern/$replace/g" command? Thanks inadvance, Prabu. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.620 / Virus Database: 399 - Release Date: 3/11/2004 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands

Pattern Matching

2004-04-07 Thread prabu
attern/$replace/g" command? Thanks inadvance, Prabu. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.620 / Virus Database: 399 - Release Date: 3/11/2004 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For ad

Pattern Matching

2004-04-06 Thread prabu
Hi, I want to match a pattern and replace with another string.Since the "?" is also one of the character present in the string. I am not able to do it. Please help to how to make "?" acceptable in the string used for pattern matching. My problem is: Here in the script,how to make the Perl to a

File Handling

2004-04-05 Thread senthil prabu
Hi, I have wrote a script to search for a pattern and replace it in all files of a directory,that i specified at commandline.I want another one thing is to be done in the script.That's,it should search only for the type of files I specified at commandline.That is,it should get the extensi

Error in Script

2004-04-04 Thread prabu
Hi, I have wrote a script to search for a pattern and replace it in all files of a directory,that i specified at commandline. I want another one thing is to be done in the script.That's,it should search only for the type of files I specified at commandline. That is,it should g

RE: help in find and replacing a string in a number of files

2004-04-02 Thread senthil prabu
quot;; my $path=; chdir($path); my $file=''; my @files=<*.txt>; foreach $file (@files){ { inner loop for pattern matchinh }; With Thanks inadvance, Prabu. Win an evening with the Indian cricket captain: Yahoo! India Promos.

help in find and replacing a string in a number of files

2004-04-01 Thread prabu
to be replaced is; document.write("<img src=" + url + "/images/corner_2.gif width='10' height='10'></td>"); Can anyone help me in this, With Thanks in advance, prabu. --- Outgoing mail is certified Virus Free. Checked by AVG ant

"" and "" in perl/tk

2004-02-03 Thread Prabu Subroto
Dear my friends... Anybody would be so kind telling me what is similar in perl/tk to arrange the location of a form written in perl/tk? I want a nice look for my perl/tk application. Somewhat like this below: 1. Name : 2. Address : 3. Telephone : I have made the main menu of my applicat

Please...Help me. How to arrange my widget with pack

2002-09-17 Thread Prabu Subroto
Dear my friends, Any body would be so kind to teach me how to put label and input of a form in one row. I am meaning like this : " Name of person : [input column with entry widget] " Here I rewrote the code under below. Thank you very much in advance. #!/usr/bin/perl use Tk; my $MainWindow =