Re: compile perl

2008-01-17 Thread Diego .
Hi Tom. Well, works fine is good for so long as it lasts. Still, I wonder: How do you know your Perl programs do what they should, when you know your perl binary doesn't do what it should? Could the test that failed have been trying to do the same thing that you're having trouble doing?

Re: compile perl

2008-01-17 Thread h3xx
On Jan 16, 6:47 am, [EMAIL PROTECTED] (Diego .) wrote: That's what i do: $BIN = $HOME/perl sh Configure -de -Dlocincpth=$BIN -Dloclibpth=$BIN -Dprefix=$BIN/perl5 -Dusethreads make make install Thanks for all Is this exactly what the shell interprets? If so, there is a simple solution.

Re: compile perl

2008-01-17 Thread Diego .
sorry it was a typo!! I wrote on shell: BIN = $HOME/perl without $ On Jan 17, 2008 4:57 AM, h3xx [EMAIL PROTECTED] wrote: On Jan 16, 6:47 am, [EMAIL PROTECTED] (Diego .) wrote: That's what i do: $BIN = $HOME/perl sh Configure -de -Dlocincpth=$BIN -Dloclibpth=$BIN -Dprefix=$BIN/perl5

ASP with VIEWSTATE and perl

2008-01-17 Thread Michael Alipio
Hi, Quick question: Anyone here knows a module which can handle viewstate in asp html forms?? I need to write a script that can submit a form to the server that is using viewstate.. thanks. Looking

Help in system function

2008-01-17 Thread Irfan.Sayed
Hi All, I am executing following command in Perl script $vw=system(mk_view $view_name ETC); if ($vw) { print view created successfully\n; } When I run this command, I am getting message view created successfully. But in reality command is not executing at all Please help

help me die verbosely

2008-01-17 Thread Jonathan Mast
I want to write the errors caught by a 'die' clause into a file. In others words, open F somefile.log; blah-blah or die (print F $@) but the above does work. thanks

RE: Help in system function

2008-01-17 Thread Irfan.Sayed
Hi, Here is the modified code $vw=system(mk_view $view_name ETC); print $vw\n; if ($vw) { print view is not created\n; } else{ print View is created \n; Please help Regards Irfan. From: Sayed, Irfan Sent: Thursday, January 17,

help me in reading the xml file

2008-01-17 Thread Allam Reddy, Thomas
Hi All, I have got an xml like this below. I want to read this file in Perl and want to retrieve the text which end with .xml. For example , I want to print the text jms/hppjmsmodules-jms.xml, since it ends with .xml Thanks in advance for your help. ?xml version='1.0' encoding='UTF-8'?

答复: Help in system function

2008-01-17 Thread Chen Yue
If you are in a *nix system, you can try to run $result=` mk_view $view_name ETC` instead and see the output from $result. It may be helpful to find the root cause. -邮件原件- 发件人: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 发送时间: 2008年1月17日 22:16 收件人: beginners@perl.org 主题: Help in

Re: help me in reading the xml file

2008-01-17 Thread Chas. Owens
On Jan 17, 2008 5:53 AM, Allam Reddy, Thomas [EMAIL PROTECTED] wrote: snip I have got an xml like this below. I want to read this file in Perl and want to retrieve the text which end with .xml. For example , I want to print the text jms/hppjmsmodules-jms.xml, since it ends with .xml snip

Re: Help in system function

2008-01-17 Thread Stephen Kratzer
On Thursday 17 January 2008 09:16:17 [EMAIL PROTECTED] wrote: Hi All, I am executing following command in Perl script $vw=system(mk_view $view_name ETC); if ($vw) { print view created successfully\n; } When I run this command, I am getting message view created successfully.

Re: help me die verbosely

2008-01-17 Thread Chas. Owens
On Jan 17, 2008 9:54 AM, Jonathan Mast [EMAIL PROTECTED] wrote: I want to write the errors caught by a 'die' clause into a file. snip Try #!/usr/bin/perl use strict; use warnings; $SIG{__DIE__} = sub { open my $fh, , something.log or die @_, could not open something.log: $!;

Re: ASP with VIEWSTATE and perl

2008-01-17 Thread Tom Phoenix
On Jan 17, 2008 4:32 AM, Michael Alipio [EMAIL PROTECTED] wrote: Anyone here knows a module which can handle viewstate in asp html forms?? Have you looked on CPAN yet? http://search.cpan.org Cheers! --Tom Phoenix Stonehenge Perl Training -- To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Help in system function

2008-01-17 Thread Rob Dixon
[EMAIL PROTECTED] wrote: Hi, Here is the modified code $vw=system(mk_view $view_name ETC); print $vw\n; if ($vw) { print view is not created\n; } else{ print View is created \n; Please help And what is the modified problem? Rob -- To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: 答复: Help in system function

2008-01-17 Thread Paul Lalli
On Jan 17, 10:09 am, [EMAIL PROTECTED] (Chen Yue) wrote: If you are in a *nix system, you can try to run $result=` mk_view $view_name ETC` instead and see the output from $result. It may be helpful to find the root cause. You've got it backwards. system(...) caues the output to be

Re: help me die verbosely

2008-01-17 Thread Rob Dixon
Jonathan Mast wrote: I want to write the errors caught by a 'die' clause into a file. In others words, open F somefile.log; blah-blah or die (print F $@) but the above does work. die() sends its output to STDERR, so open STDERR, '', 'somefile.log' or die $!; blah-blah or die

Re: find2perl

2008-01-17 Thread oryann9
- Will anyone help me with this issue? These three lines of code work, but work in a way that I am not expecting. When I tell this module to set no_chdir to 1 it should NOT descend directories yet it does. Am I supposed to have a wanted routine other than whats below? Below are the 3 lines I

Re: find2perl

2008-01-17 Thread oryann9
- Original Message From: Randal L. Schwartz [EMAIL PROTECTED] To: oryann9 [EMAIL PROTECTED] Sent: Thursday, January 17, 2008 6:39:35 PM Subject: Re: find2perl The following message is a courtesy copy of an article that has been posted to perl.beginners as well. oryann9 == oryann9

Re: find2perl

2008-01-17 Thread Randal L. Schwartz
oryann9 == oryann9 [EMAIL PROTECTED] writes: oryann9 Will anyone help me with this issue? These three lines of code work, oryann9 but work in a way that I am not expecting. Then you aren't reading the docs, or listening to anyone's help here. Not only that, you've been rude by reposting your

Re: Memory Usage of my Script

2008-01-17 Thread yitzle
Hi. Sorry for resurrecting such an old conversation. I don't have any Objects, so I don't think I can have any cycles. DumpSizes tells me I'm only using around 200KB RAM. Yet top reports close to 10MB, mostly in the DATA segment. Where is that memory going? Is it probably the includes? I don't see

Re: find2perl

2008-01-17 Thread oryann9
Original Message From: Randal L. Schwartz [EMAIL PROTECTED] To: oryann9 [EMAIL PROTECTED] Cc: Perl List beginners@perl.org Sent: Thursday, January 17, 2008 7:04:40 PM Subject: Re: find2perl oryann9 == oryann9 [EMAIL PROTECTED] writes: oryann9 No one from perlmonks seems to know the

Re: Memory Usage of my Script

2008-01-17 Thread Tom Phoenix
On Jan 17, 2008 3:36 PM, yitzle [EMAIL PROTECTED] wrote: DumpSizes tells me I'm only using around 200KB RAM. Yet top reports close to 10MB, mostly in the DATA segment. Where is that memory going? Is it probably the includes? I don't see where else it can be. As it runs, your perl binary

Re: find2perl

2008-01-17 Thread Randal L. Schwartz
oryann9 == oryann9 [EMAIL PROTECTED] writes: oryann9 No one from perlmonks seems to know the answer either, likewise here. This is a lie. If you don't see that it's a lie, then no amount of answering in EITHER place will HELP you. Hire a programmer, please. -- Randal L. Schwartz -

last entry in a file

2008-01-17 Thread paul_0403
Is there a quick and easy way in perl to get the last entry in a file for a specific value For example If I have the following data in a file len1\len typeint\type len2\len typeint\type len3\len typeint\type I would like to get the line len3\len. Please keep in mind that the data in the file

Re: last entry in a file

2008-01-17 Thread reader
[EMAIL PROTECTED] writes: Please keep in mind that the data in the file is only a sample and it will not alwasy be the second line from the bottome :-) I know I can read the file and keep track via a flag of where I am in the file but this seems way to over-kill. I was hoping for some nice

Re: last entry in a file

2008-01-17 Thread Randal L. Schwartz
paul == paul 0403 [EMAIL PROTECTED] writes: paul Is there a quick and easy way in perl to get the last entry in a file paul for a specific value paul For example If I have the following data in a file paul len1\len paul typeint\type paul len2\len paul typeint\type paul len3\len paul

Re: find2perl

2008-01-17 Thread Tom Phoenix
On Jan 17, 2008 4:18 PM, oryann9 [EMAIL PROTECTED] wrote: I am not a liar! I am a Christian and the only little help I have received is: If you don't see that the help you're being given is neither only nor little, you're not paying attention. P.S. Apologizes for not knowing I was supposed to

Re: Searching text file and printing to new file

2008-01-17 Thread PlagueMagazine
On Jan 14, 5:08 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: [EMAIL PROTECTED] wrote: I'm a nearly absolute beginner to Perl, Then this site ought to be useful:http://learn.perl.org/ and a lot of the text manipulation things confuse me. Really? Which things specifically, and in what

Re: Searching text file and printing to new file

2008-01-17 Thread Gunnar Hjalmarsson
[EMAIL PROTECTED] wrote: On Jan 14, 5:08 pm, [EMAIL PROTECTED] (Gunnar Hjalmarsson) wrote: [EMAIL PROTECTED] wrote: I have a large text file with information essentially broken into lines like this: findable text with a regexp information I care about more findable text There are plenty of