Re: Perl version error

2023-05-31 Thread Olivier
OOps, I miss read the version of Perl, sorry. Olivier -- -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Perl version error

2023-05-31 Thread Olivier
"aziz.ogu...@eduline.com.tr" writes: > Hi Ken, > > I upgrade perl to the latest version that is 5.36.1, but I took same error. The error message ask for Perl verion 5.37 and you only upgraded to verion 5.36, so the error is still there. You may have to download the so

Perl version error

2023-05-31 Thread Aziz Öğütlü
We are using mirdeep2 on our HPC system. When we try to call mirdeep2.pl, it gives this error: Perl v5.35.7 required--this is only v5.26.3, stopped at /opt/ohpc/pub/compiler/perl/5.36.0/lib/5.36.0/File/Copy.pm line 10. BEGIN failed--compilation aborted at /opt/ohpc/pub/compiler/perl/5.36.0

Re: Error when using the executable perl in client machine

2020-04-26 Thread Manikandan Narayan
t; > Finding these manually can be a pain, so have a look at pp_autolink or > pp_simple (the former is mine, but adapted from the latter). > > https://github.com/shawnlaffan/perl-pp-autolink > https://www.perlmonks.org/?node_id=1148802 > > Shawn. > > > > >

Re: Error when using the executable perl in client machine

2020-04-24 Thread Mike
Shawn. On 4/17/20 12:00 PM, Manikandan Narayan wrote: Hi We are using strawberry-perl Error when using the executable perl in client machine that does not have strawberry-perl in it Can't load 'C:\Users\Nuser\AppData\Local\Temp\par-30303030313137\cache-3610486

Re: Error when using the executable perl in client machine

2020-04-20 Thread Manikandan Narayan
ht get better luck there. Apparently there's no-one here who is > willing or able to help. > > I don't use PAR::Packer and have no interest in it. > > Cheers, > Rob > > On Sat, Apr 18, 2020 at 3:01 AM Manikandan Narayan < > narayanmanikan...@gmail.com> wrote: > >&g

Re: Error when using the executable perl in client machine

2020-04-20 Thread sisyphus
< narayanmanikan...@gmail.com> wrote: > Hi We are using strawberry-perl > > Error when using the executable perl in client machine that does not have > strawberry-perl in it > > Can't load > 'C:\Users\Nuser\AppData\Local\Temp\par-30303030313137\cache-3610486 > 8c73148db1c6

Error when using the executable perl in client machine

2020-04-17 Thread Manikandan Narayan
Hi We are using strawberry-perl Error when using the executable perl in client machine that does not have strawberry-perl in it Can't load 'C:\Users\Nuser\AppData\Local\Temp\par-30303030313137\cache-3610486 8c73148db1c60163c6ec837fe6a3b7c0d\9c557319.xs.dll' for module Net::SSH2: load_file:The

Re: Help with "install_driver(Oracle) failed" error message

2019-03-12 Thread Uri Guttman
.. Regardless,  I installed Strawberry Perl, 64 bit, and MOST everything is running “okay”.  I am getting the following error in one of our scripts (this was not a problem when Active State perl was installed): hi, i am sorry for your pain (in multiple dimensions! :). i can't help you but i would

Help with "install_driver(Oracle) failed" error message

2019-03-12 Thread Frank K.
bit, and MOST everything is running “okay”. I am getting the following error in one of our scripts (this was not a problem when Active State perl was installed): = D:\ALM tools\Atlassian>echo off perl atlassianuserlister

Re: slurp error

2018-08-06 Thread Shlomi Fish
ruct can be "0"; test with defined() > > at line 23” (the $slurp = <$fh1> line). I’m using perl version 5.18.2 > > installed in 2014. > > > > I’ve googled this error and think (ha!) I understand it, but though > > I’ve tried many changes, I cannot

Re: slurp error

2018-07-29 Thread perl
er > argue with him. > > On Fri, Jul 27, 2018 at 1:37 PM, Rick T <mailto:p...@reason.net>> wrote: > I tried to implement some advice about slurping that I read on this mailing > list (using local) but cannot get it to work. I get the message “Value of > construct can be "

Re: slurp error

2018-07-27 Thread Andy Bach
Fri, Jul 27, 2018 at 1:37 PM, Rick T wrote: > I tried to implement some advice about slurping that I read on this > mailing list (using local) but cannot get it to work. I get the message > “Value of construct can be "0"; test with defined() at line 23” > (the $slurp = <$

Re: slurp error

2018-07-27 Thread Uri Guttman
ing perl version 5.18.2 installed in 2014. I’ve googled this error and think (ha!) I understand it, but though I’ve tried many changes, I cannot make the error go away. I need the advice of folks who are way ahead of me! Rick Triplett use File::Slurp ; #from cpan my $text = read_file(

slurp error

2018-07-27 Thread Rick T
4. I’ve googled this error and think (ha!) I understand it, but though I’ve tried many changes, I cannot make the error go away. I need the advice of folks who are way ahead of me! Rick Triplett use warnings; use strict; use DB_File; # module for Berkeley DBM w/ DB_HASH file type

Re: Distinguish module loading error: Compilation fail vs. not existing

2017-11-17 Thread Chas. Owens
; } or do { > > if ($@ =~ /Compilation failed in require/) { > > say "compilation failed"; > > } > > elsif ($@ =~ /Can't locate (.*) in \@INC/) { > > say "module $1 not found"; > > } else { > > say &qu

Re: Distinguish module loading error: Compilation fail vs. not existing

2017-11-17 Thread Simon Reinhardt
e (.*) in \@INC/) { >         say "module $1 not found"; >     } else { >         say "unknown error: $@" > }; > > This isn't 100% safe, but it covers the most common issue.  You can read > more at https://metacpan.org/pod/Try::Tiny#BACKGROUND > > On F

Re: Distinguish module loading error: Compilation fail vs. not existing

2017-11-17 Thread Chas. Owens
/) { say "compilation failed"; } elsif ($@ =~ /Can't locate (.*) in \@INC/) { say "module $1 not found"; } else { say "unknown error: $@" }; This isn't 100% safe, but it covers the most common issue. You can read more at https://metacpa

Distinguish module loading error: Compilation fail vs. not existing

2017-11-17 Thread Simon Reinhardt
Hi list, I need to check the cause of a module loading error. Currently I'm parsing the text of the thrown exception (see below). This seems to work, but is there a more idiomatic way? Best, Simon #!/usr/bin/env perl use 5.020; use warnings; use strict; use Module::Load; my $module= 'AB::CD

Re: Getting error- connect to Bugzilla(Certificate Authorities to trust)

2015-09-10 Thread Jitendra B
Thanks David, it resolved. I am new to Bugzilla. I am really do not know where it went wrong in below code snippet. Error: not well-formed (invalid token) at line 23, column 29, byte 846: enc1 = chr1 >> 2; enc2 = ((chr1 & 3) <<

Re: Getting error- connect to Bugzilla(Certificate Authorities to trust)

2015-09-10 Thread Omega -1911
http://www.perlmonks.org/?node_id=892166 Goggle is your friend. On Thu, Sep 10, 2015 at 1:54 AM, Jitendra B <jiten...@gmail.com> wrote: > Dear Sir/Madam, > > while I try to connect and query some data from bugzilla, I am getting > following error. > > Error: > >

Re: Getting error- connect to Bugzilla(Certificate Authorities to trust)

2015-09-10 Thread Jitendra B
end. > > On Thu, Sep 10, 2015 at 1:54 AM, Jitendra B <jiten...@gmail.com> wrote: > >> Dear Sir/Madam, >> >> while I try to connect and query some data from bugzilla, I am getting >> following error. >> >> Error: >> >> RPC::XML::Client::se

Getting error- connect to Bugzilla(Certificate Authorities to trust)

2015-09-09 Thread Jitendra B
Dear Sir/Madam, while I try to connect and query some data from bugzilla, I am getting following error. Error: RPC::XML::Client::send_request: HTTP server error: Can't verify SSL peers without knowing which Certificate Authorities to trust at /Library/Perl/5.18/RPC/XML/Client.pm line 416

Re: Why doesn't this script error?

2015-03-14 Thread John SJ Anderson
Try again with 'use strict' and 'use warnings' turned on. On Sat, Mar 14, 2015 at 1:40 PM, Sherman Willden sherman.will...@gmail.com wrote: I am new to Eclipse and Epic so I wrote the below script which I thought would error but it runs. Why? #!/usr/bin/perl use 5.18.2; print Hello World

Why doesn't this script error?

2015-03-14 Thread Sherman Willden
I am new to Eclipse and Epic so I wrote the below script which I thought would error but it runs. Why? #!/usr/bin/perl use 5.18.2; print Hello World \n; print this 1 Thank you; Sherman

Need more helpful error messages from Perl

2014-11-19 Thread Kevin Walzer
Running this code in Perl: use LWP::Simple; my $url= http://mywebsite.com/foo.ini;; my $page = get($url); produced this error: sh: -c: line 0: unexpected EOF while looking for matching `'' sh: -c: line 1: syntax error: unexpected end of file The error message in question refers

Re: Need more helpful error messages from Perl

2014-11-19 Thread Mike D
use diagnostics; On Nov 19, 2014 8:23 AM, Kevin Walzer k...@codebykevin.com wrote: Running this code in Perl: use LWP::Simple; my $url= http://mywebsite.com/foo.ini;; my $page = get($url); produced this error: sh: -c: line 0: unexpected EOF while looking for matching `'' sh: -c

Re: Need more helpful error messages from Perl

2014-11-19 Thread Ron Bergin
Kevin Walzer wrote: Running this code in Perl: use LWP::Simple; my $url= http://mywebsite.com/foo.ini;; my $page = get($url); produced this error: sh: -c: line 0: unexpected EOF while looking for matching `'' sh: -c: line 1: syntax error: unexpected end of file Those error messages

module installation error from cpan cli

2014-07-14 Thread Benjamin Fernandis
Hi, I got below error while installing Devel::Trace module to trace each line of script like sh -x. [root@ahc151l backup]# cpan Terminal does not support AddHistory. cpan shell -- CPAN exploration and modules installation (v1.9800) Enter 'h' for help. cpan[1] install Devel::Trace Reading

Re: module installation error from cpan cli

2014-07-14 Thread David Precious
On Tue, 15 Jul 2014 00:07:16 +1200 Benjamin Fernandis benjo11...@gmail.com wrote: Hi, I got below error while installing Devel::Trace module to trace each line of script like sh -x. [...] cpan[1] install Devel::Trace [...] t/compile.t .. Can't locate Test/More.pm in @INC (@INC contains

Re: module installation error from cpan cli

2014-07-14 Thread Benjamin Fernandis
Thx, it works. I just reinstalled with CENTOS 7. After installing Test::More from cpan it works now. On Tue, Jul 15, 2014 at 12:22 AM, David Precious dav...@preshweb.co.uk wrote: On Tue, 15 Jul 2014 00:07:16 +1200 Benjamin Fernandis benjo11...@gmail.com wrote: Hi, I got below error

uninitialized error for hash printing

2014-06-22 Thread Sunita Pradhan
I have following code for printing a simple hash. #!/usr/bin/perl -w %hash = (abc = 123, dfg = 456, xsd = 34); foreach $k (keys %hash){ print key $k:: value $hash{$k}\n; } It does not print keys and displays following warnings: -- Use of uninitialized value $k:: in

Re: uninitialized error for hash printing

2014-06-22 Thread John Delacour
On 22 Jun 2014, at 21:01, Sunita Pradhan sunita.pradhan.2...@hotmail.com wrote: I have following code for printing a simple hash. #!/usr/bin/perl -w %hash = (abc = 123, dfg = 456, xsd = 34); foreach $k (keys %hash){ print key $k:: value $hash{$k}\n; } -- Use of

Re: uninitialized error for hash printing

2014-06-22 Thread Uri Guttman
On 06/22/2014 04:01 PM, Sunita Pradhan wrote: I have following code for printing a simple hash. #!/usr/bin/perl -w %hash = (abc = 123, dfg = 456, xsd = 34); foreach $k (keys %hash){ print key $k:: value $hash{$k}\n; } It does not print keys and displays following warnings:

Re: uninitialized error for hash printing

2014-06-22 Thread Shaji Kalidasan
Hi Sunita, As per Uri's suggestions, here's one way to make it work by surrounding the variable with curly braces [code] %hash = (abc = 123, dfg = 456, xsd = 34); foreach $k (keys %hash){ print key ${k}:: value $hash{$k}\n; } [/code] [output] key abc:: value 123 key dfg:: value 456

perlbrew error

2014-06-15 Thread Subinoy Biswas
Hi, I am having a trouble installing any module with cpanm in perlbrew perl-5.20.0 in an test1 local lib. Below I am pasting the verbose. Please help me to solve this issue.subinoybiswas@sunymacs:~/work_ubc/seq$ which perl /Users/subinoybiswas/perl5/perlbrew/perls/perl-5.20.0/bin/perl

Re: perlbrew error

2014-06-15 Thread John SJ Anderson
On Sun, Jun 15, 2014 at 10:31 AM, Subinoy Biswas suny@gmail.com wrote: Hi, I am having a trouble installing any module with cpanm in perlbrew perl-5.20.0 in an test1 local lib. Below I am pasting the verbose. Please help me to solve this issue So, you need to install Tie::Hash::Indexed:

Re: Error in installing Bundle::Expect as dependency for some other module using CPAN

2014-05-29 Thread Sebastien Feugere
@perl.org' *Subject:* Error in installing Bundle::Expect as dependency for some other module using CPAN Hello, I am uploading my module Net::Netconf *http://search.cpan.org/search?mode=allquery=net%3A%3Anetconf*http://search.cpan.org/search?mode=allquery=net%3A%3Anetconfin CPAN, but its giving

RE: Error in installing Bundle::Expect as dependency for some other module using CPAN

2014-05-29 Thread Priyal Jain
Hello, I am still getting error, Following is the error message: root@priyal:/usr/local/share/perl/5.14.2# cpanm Net::Netconf -- Working on Net::Netconf Fetching http://search.cpan.org/CPAN/authors/id/J/JP/JPRIYAL/Net-Netconf-0.01.zip ... OK ! Bad archive: [testing: Net-Netconf-0.01/CHANGES

RE: Error in installing Bundle::Expect as dependency for some other module using CPAN

2014-05-28 Thread Priyal Jain
, Thanks, Priyal _ From: Priyal Jain Sent: Friday, May 16, 2014 2:11 PM To: 'beginners@perl.org' Subject: Error in installing Bundle::Expect as dependency for some other module using CPAN Hello, I am uploading my module Net::Netconf http

Re: Error in installing Bundle::Expect as dependency for some other module using CPAN

2014-05-17 Thread Shlomi Fish
Hi Priyal, On Fri, 16 May 2014 11:15:25 + Priyal Jain jpri...@juniper.net wrote: Hello, I am getting following message when I run cpan Net::Netconf Checking if EOF on pty slave is correctly reported to master... (this fails on about 50% of the supported systems, so don't panic!

Error in installing Bundle::Expect as dependency for some other module using CPAN

2014-05-16 Thread Priyal Jain
Hello, I am uploading my module Net::Netconf http://search.cpan.org/search?mode=allquery=net%3A%3Anetconf in CPAN, but its giving error of dependency not found for Bundle::Expect. I am mentioning all my dependency in Makefile.Pl use ExtUtils::MakeMaker; our $VERSION ='0.01'; use 5.006

Re: Error in installing Bundle::Expect as dependency for some other module using CPAN

2014-05-16 Thread Shlomi Fish
Hi Priyal, please reply to all recipients / to the list. On Fri, 16 May 2014 08:41:02 + Priyal Jain jpri...@juniper.net wrote: Hello, I am uploading my module Net::Netconf http://search.cpan.org/search?mode=allquery=net%3A%3Anetconf in CPAN, but its giving error of dependency

RE: Error in installing Bundle::Expect as dependency for some other module using CPAN

2014-05-16 Thread Priyal Jain
-Original Message- From: Shlomi Fish [mailto:shlo...@shlomifish.org] Sent: Friday, May 16, 2014 3:16 PM Cc: beginners@perl.org Subject: Re: Error in installing Bundle::Expect as dependency for some other module using CPAN Hi Priyal, please reply to all recipients / to the list. On Fri, 16 May

error installing catalyst via cpan

2014-02-10 Thread Luca Ferrari
Hi all, while installing Catalyst::Devel on my machine I got the following: Fetching with LWP: http://www.planet-elektronik.de/CPAN/authors/id/D/DC/DCANTRELL/CHECKSUMS Catching error: 'HANDLE' trapped by operation mask at (eval 308) line 1.\cJ at /usr/share/perl/5.14/CPAN/Distribution.pm line

Re: error installing catalyst via cpan

2014-02-10 Thread Octavian Rasnita
Try installing Catalyst with cpanm. Or join Catalyst mailing list and ask there. There may be more that know the answer. --Octavian - Original Message - From: Luca Ferrari fluca1...@infinito.it To: beginners@perl.org Sent: Monday, February 10, 2014 5:01 PM Subject: error installing

Re: error installing catalyst via cpan

2014-02-10 Thread Luca Ferrari
On Mon, Feb 10, 2014 at 5:24 PM, Rodney Simioni rodney.simi...@verio.net wrote: Can you upgrade CPAN? I did. I reloaded the CPAN shell and try it again, but the error remains the same. I was able to install it via cpanm. Luca -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org

Re: error installing catalyst via cpan

2014-02-10 Thread Luca Ferrari
On Mon, Feb 10, 2014 at 6:22 PM, Octavian Rasnita orasn...@gmail.com wrote: Try installing Catalyst with cpanm. Or join Catalyst mailing list and ask there. There may be more that know the answer. Thanks, I was able to install it via cpanm, even if I wonder why CPAN should not work Luca

Re: error installing catalyst via cpan

2014-02-10 Thread Octavian Rasnita
To: Octavian Rasnita orasn...@gmail.com Cc: beginners@perl.org Sent: Tuesday, February 11, 2014 9:00 AM Subject: Re: error installing catalyst via cpan On Mon, Feb 10, 2014 at 6:22 PM, Octavian Rasnita orasn...@gmail.com wrote: Try installing Catalyst with cpanm. Or join Catalyst mailing list and ask

Re: Gigantic file size processing error

2014-01-03 Thread kurtz le pirate
(Thanks Uri) but for this huge size 500MB it is not processing and come out with error. I have also used Tie::file module same case as not processing, any guidance. regards Manikandan Hi, have you try this kind of command : perl -p -i -e s/oneThing/otherThing/g yourFile hang

Re: Gigantic file size processing error

2014-01-03 Thread Jan Gruber
Hi List, On Friday, January 03, 2014 10:57:13 AM kurtz le pirate wrote: have you try this kind of command : perl -p -i -e s/oneThing/otherThing/g yourFile I was about to post the same thing. My suggestion: Create a backup file just in case something goes wrong. perl -pi.bak -e

Re: Gigantic file size processing error

2014-01-03 Thread Janek Schleicher
Am 02.01.2014 18:08, schrieb David Precious: Oh, I was thinking of a wrapper that would: (a) open a new temp file (b) iterate over the source file, line-by-line, calling the provided coderef for each line (c) write $_ (potentially modified by the coderef) to the temp file (d) finally, rename

Re: Gigantic file size processing error

2014-01-03 Thread mani kandan
Hi, Thanks for all your guidance, The Error was Perl Command Line Intepretar has encountered a problem and needs to close,  Also increased the virtual memory, No use, My system configuration OS XP SP3 Intel Core 2 duo with 2 GB Ram. regards Manikandan N On Friday, 3 January 2014 9:06 PM

Re: Gigantic file size processing error

2014-01-03 Thread Uri Guttman
of a code block modifies $_. likely it will be much slower for typical files as well. now for very large files, we can't tell. we still haven't heard back from the OP about the actual error. my conjecture of a resource limit still feels right. neither perl nor file::slurp would have any errors

Re: Gigantic file size processing error

2014-01-03 Thread Uri Guttman
On 01/03/2014 12:10 PM, mani kandan wrote: Hi, Thanks for all your guidance, The Error was Perl Command Line Intepretar has encountered a problem and needs to close, that isn't the real error. you need to run this in a command window that won't close after it fails so you can see the real

Re: Gigantic file size processing error

2014-01-03 Thread Shawn H Corey
On Fri, 03 Jan 2014 12:22:48 -0500 Uri Guttman u...@stemsystems.com wrote: i haven't seen that before but it was last touched in 2005. That means it has no bugs. A better metric of a modules quality is how many outstanding bugs are? See https://rt.cpan.org//Dist/Display.html?Queue=File-Inplace

Re: Gigantic file size processing error

2014-01-03 Thread Uri Guttman
On 01/03/2014 12:48 PM, Shawn H Corey wrote: On Fri, 03 Jan 2014 12:22:48 -0500 Uri Guttman u...@stemsystems.com wrote: i haven't seen that before but it was last touched in 2005. That means it has no bugs. A better metric of a modules quality is how many outstanding bugs are? See

Re: Gigantic file size processing error

2014-01-03 Thread Rob Dixon
with error. I have also used Tie::file module same case as not processing, any guidance. Slurping entire files into memory is usually overkill, and you should only do it if you can aford the memory and *really need* random access to the entire file at once. Most of the time a simple sequential read/modify

Re: Gigantic file size processing error

2014-01-03 Thread Uri Guttman
it is not processing and come out with error. I have also used Tie::file module same case as not processing, any guidance. Slurping entire files into memory is usually overkill, and you should only do it if you can aford the memory and *really need* random access to the entire file at once. Most

Gigantic file size processing error

2014-01-02 Thread mani kandan
Hi, We have file size of huge size 500MB, Need to Manipulate the file, some replacement and then write the file, I have used File::slurp and works for file size of 300MB (Thanks Uri) but for this huge size 500MB it is not processing and come out with error. I have also used Tie::file module

Re: Gigantic file size processing error

2014-01-02 Thread David Precious
500MB it is not processing and come out with error. I have also used Tie::file module same case as not processing, any guidance. Firstly, be specific - come out with error doesn't help us - what is the error? Secondly - do you need to work on the file as a whole, or can you just loop over it, making

Re: Gigantic file size processing error

2014-01-02 Thread Uri Guttman
of 300MB (Thanks Uri) but for this huge size 500MB it is not processing and come out with error. I have also used Tie::file module same case as not processing, any guidance. Firstly, be specific - come out with error doesn't help us - what is the error? Secondly - do you need to work on the file

Re: Gigantic file size processing error

2014-01-02 Thread David Precious
On Thu, 02 Jan 2014 11:18:31 -0500 Uri Guttman u...@stemsystems.com wrote: On 01/02/2014 10:39 AM, David Precious wrote: Secondly - do you need to work on the file as a whole, or can you just loop over it, making changes, and writing them back out? In other words, do you *need* to hold

Re: Gigantic file size processing error

2014-01-02 Thread Uri Guttman
On 01/02/2014 11:48 AM, David Precious wrote: On Thu, 02 Jan 2014 11:18:31 -0500 Uri Guttman u...@stemsystems.com wrote: On 01/02/2014 10:39 AM, David Precious wrote: Secondly - do you need to work on the file as a whole, or can you just loop over it, making changes, and writing them back

Re: Gigantic file size processing error

2014-01-02 Thread David Precious
On Thu, 02 Jan 2014 11:56:26 -0500 Uri Guttman u...@stemsystems.com wrote: Part of me wonders if File::Slurp should provide an in-place (not slurping into RAM) editing feature which works like edit_file_lines but line-by-line using a temp file, but that's probably feature creep :)

Re: Gigantic file size processing error

2014-01-02 Thread Uri Guttman
On 01/02/2014 12:08 PM, David Precious wrote: On Thu, 02 Jan 2014 11:56:26 -0500 Uri Guttman u...@stemsystems.com wrote: Part of me wonders if File::Slurp should provide an in-place (not slurping into RAM) editing feature which works like edit_file_lines but line-by-line using a temp file, but

Re: Gigantic file size processing error

2014-01-02 Thread Uri Guttman
On 01/02/2014 12:33 PM, David Precious wrote: On Thu, 02 Jan 2014 12:19:16 -0500 Uri Guttman u...@stemsystems.com wrote: On 01/02/2014 12:08 PM, David Precious wrote: Oh, I was thinking of a wrapper that would: (a) open a new temp file (b) iterate over the source file, line-by-line, calling

Re: Gigantic file size processing error

2014-01-02 Thread David Precious
On Thu, 02 Jan 2014 12:19:16 -0500 Uri Guttman u...@stemsystems.com wrote: On 01/02/2014 12:08 PM, David Precious wrote: Oh, I was thinking of a wrapper that would: (a) open a new temp file (b) iterate over the source file, line-by-line, calling the provided coderef for each line (c)

Re: raise an error

2013-09-26 Thread Shlomi Fish
Hi Ken, On Thu, 26 Sep 2013 09:45:45 +0800 Ken Peng ken.p...@cloudcache.net wrote: Does perl have a way to raise a error in module/class then from caller use Try::Tiny etc to catch them? Thanks. I'm not using Try::Tiny (though many people recommend it), but I use https://metacpan.org

Re: raise an error

2013-09-26 Thread Ken Peng
On 2013-9-26 14:22, Shlomi Fish wrote: I'm not using Try::Tiny (though many people recommend it), but I use https://metacpan.org/release/Exception-Class and it works fine. It's not clear what exactly you're trying to do. what I asked is how to raise an error from a module/class correctly

Re: raise an error

2013-09-26 Thread John SJ Anderson
On Wed, Sep 25, 2013 at 6:45 PM, Ken Peng ken.p...@cloudcache.net wrote: Does perl have a way to raise a error in module/class then from caller use Try::Tiny etc to catch them? Thanks. You can throw an exception with 'die()' -- see 'perldoc -f die' for calling syntax. chrs, john

raise an error

2013-09-25 Thread Ken Peng
Does perl have a way to raise a error in module/class then from caller use Try::Tiny etc to catch them? Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

DateTime::Format::MySQL not working as expected, throwing error

2013-09-04 Thread J M
, it throws me this error: Use of uninitialized value $input in concatenation (.) or string at /usr/local/share/perl/5.14.2/ DateTime/Format/Builder.pm line 154. Invalid date format: at ./logbook.pl line 29 Here's my code: #! /usr/bin/perl #use strict; use DBI; use DateTime::Format::MySQL; my $dbh

Re: DateTime::Format::MySQL not working as expected, throwing error

2013-09-04 Thread Dr.Ruud
On 05/09/2013 02:28, J M wrote: However, I'm running into a problem: the FIRST instance of DateTime::Format::MySQL works perfectly... but when I get to the second one, it throws me this error: Use of uninitialized value $input in concatenation (.) or string at /usr/local/share/perl/5.14.2

Excel Sheet Gen Code gives error

2013-07-15 Thread Tom, Jentil Kuriakose
); $SUMMARY-write(0, 2, A); But it gives following error when I execute through: perl excel_sheet.pl Can't locate Spreadsheet/WriteExcel.pm in @INC (@INC contains: /usr/perl5/5.8.4/lib/sun4-solaris-64int /usr/perl5/5.8.4/lib /usr/perl5/site_perl/5.8.4/sun4-solaris-64int /usr/perl5

Re: Excel Sheet Gen Code gives error

2013-07-15 Thread Jing Yu
: #!/usr/bin/perl use strict; use Spreadsheet::WriteExcel; my $workbook = Spreadsheet::WriteExcel-new(simple.xls); my $SUMMARY = $workbook-add_worksheet(SUMMARY); $SUMMARY-write(0, 0, START); $SUMMARY-write(0, 2, A); But it gives following error when

Re: Excel Sheet Gen Code gives error

2013-07-15 Thread Pritish Pattanaik
); my $SUMMARY = $workbook-add_worksheet(SUMMARY); $SUMMARY-write(0, 0, START); $SUMMARY-write(0, 2, A); But it gives following error when I execute through: perl excel_sheet.pl Can't locate Spreadsheet/WriteExcel.pm in @INC (@INC contains: /usr/perl5/5.8.4/lib/sun4

RE: Excel Sheet Gen Code gives error

2013-07-15 Thread Tom, Jentil Kuriakose
Thanks Pritish/jing! From: Pritish Pattanaik [mailto:pattanaikprit...@gmail.com] Sent: Monday, July 15, 2013 4:47 PM To: Tom, Jentil Kuriakose; beginners@perl.org Subject: Re: Excel Sheet Gen Code gives error Hello Jentil, Have you installed SpreadSheet::WriteExcel module

Re: Perl error codes and warnings

2013-05-29 Thread *Shaji Kalidasan*
Kalidasan* shajiin...@yahoo.com Cc: Perl Beginners beginners@perl.org Sent: Wednesday, 29 May 2013 9:26 AM Subject: Re: Perl error codes and warnings Hi Shaji, On Wed, May 29, 2013 at 4:19 AM, *Shaji Kalidasan* shajiin...@yahoo.com wrote: Greetings, Where can I get more information

RE: Perl error codes and warnings

2013-05-29 Thread Warren James - jawarr
] Sent: Wednesday, May 29, 2013 2:34 AM To: timothy adigun; Charles DeRykus Cc: Perl Beginners Subject: Re: Perl error codes and warnings Thanks a bunch Timothy and Charles for guiding me to wonderful resources within the Perl system. use diagnostics qw/-verbose/; it slipped my attention

Re: Perl error codes and warnings

2013-05-29 Thread *Shaji Kalidasan*
: RE: Perl error codes and warnings Shaji - Upon completion, is this something which you could please consider providing to us/the list audience as well?: “…a document with suitable code snippets which includes the most common Perl programming errors and warnings.”   THANKS JJW   From:*Shaji

Perl error codes and warnings

2013-05-28 Thread *Shaji Kalidasan*
Greetings, Where can I get more information on Perl's most common error codes? Is there a single source (repository/resource) for such most frequently encountered error codes? [code-1] use strict; use warnings; my @names = qw/bat, ball, %!*, king, (^@), eagle, zebra/; foreach (@names

Re: Perl error codes and warnings

2013-05-28 Thread Charles DeRykus
On 5/28/2013 8:19 PM, *Shaji Kalidasan* wrote: Greetings, Where can I get more information on Perl's most common error codes? Is there a single source (repository/resource) for such most frequently encountered error codes? [code-1] use strict; use warnings; [ ... ] The warnings

Re: Perl error codes and warnings

2013-05-28 Thread timothy adigun
Hi Shaji, On Wed, May 29, 2013 at 4:19 AM, *Shaji Kalidasan* shajiin...@yahoo.comwrote: Greetings, Where can I get more information on Perl's most common error codes? Is there a single source (repository/resource) for such most frequently encountered error codes? [code-1] use strict

dmake can't find config.h, and collector throws error when trying to compile perl-static.exe (perl-5.18.0 / mingw)

2013-05-26 Thread R. S.
: ..\libperl518s.a(perllib.o): bad reloc address 0x0 in section `.data' collect2.exe: error: ld returned 1 exit status dmake: Warning: -- Found file corresponding to virtual target [..\uudmap.h]. dmake: Error code 129, while making '..\perl-static.exe' I got uncommented these lines in makefile.mk: BUILD_STATIC

Re: dmake can't find config.h, and collector throws error when trying to compile perl-static.exe (perl-5.18.0 / mingw)

2013-05-26 Thread Shlomi Fish
: ..\libperl518s.a(perllib.o): bad reloc address 0x0 in section `.data' collect2.exe: error: ld returned 1 exit status dmake: Warning: -- Found file corresponding to virtual target [..\uudmap.h]. dmake: Error code 129, while making '..\perl-static.exe' I got uncommented these lines in makefile.mk

Re: dmake can't find config.h, and collector throws error when trying to compile perl-static.exe (perl-5.18.0 / mingw)

2013-05-26 Thread Shlomi Fish
Hi R. S., please reply to all recipients as I specifically instruct in my signature. You sent your last reply only to me. On Sun, 26 May 2013 17:59:06 +0200 R. S. rs...@live.com wrote: Hello Shlomi, Sunday, May 26, 2013, 5:37:29 PM, you wrote: What are you trying to do? Are you trying to

Re: dmake can't find config.h, and collector throws error when trying to compile perl-static.exe (perl-5.18.0 / mingw)

2013-05-26 Thread sisyphus1
-Original Message- From: R. S. dmake -f makefile.mk == del /f config.h Can not find D:\perl\win32\config.h. copy config_H.gc config.h Number of copied files: 1. That looks pretty normal to me. The 'del /f config.h' command is executed to remove any

Permission error

2013-04-24 Thread Florian Huber
always get permission denied. Strange enough, while writing the script I already tried renaming all the files to the same name so that at the end there would be just one file (for test purposes) and that worked. When I tried again with the pattern above I got the permission error. I read

Re: Permission error

2013-04-24 Thread Florian Huber
the script I already tried renaming all the files to the same name so that at the end there would be just one file (for test purposes) and that worked. When I tried again with the pattern above I got the permission error. I read that sometimes open files cause problems but I already restarted the PC

use utf-8 results in error

2012-11-22 Thread boB Stepp
:\Dwimperl\perl\lib Googling the part of the error message that does not contain my personal file paths has not led me to anything that I find helpful. Thoughts? Thanks! boB -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http

Re: use utf-8 results in error

2012-11-22 Thread boB Stepp
On Thu, Nov 22, 2012 at 11:54 PM, ranveer raghuwanshi ranveer.ra...@gmail.com wrote: Its not utf-8 its utf8 without hyphen(-) Thank you, Ranveer! Perhaps I should not do my Perl studies as the wee morning hours (here) approach. The obvious once again escapes me... boB -- To unsubscribe,

Re: use utf-8 results in error

2012-11-22 Thread Jim Gibson
as to why utf.pm is being looked for. utf8.pm is available in E:\Dwimperl\perl\lib Googling the part of the error message that does not contain my personal file paths has not led me to anything that I find helpful. Thoughts? I don't have a copy of that book, but I suspect that it is referring

variable definition error not caught when using strict and warnings

2012-11-09 Thread Nemana, Satya
Hi I am a little confused with this program Program: use strict; use warnings; if ($999 == 1056) { print (\nequal); } else { print (\nnot equal); } What I expect: Perl to throw me an error as $999 variable is not defined, but perl executes the code with a warning.(I don't expect

Re: variable definition error not caught when using strict and warnings

2012-11-09 Thread Robert Wohlfarth
On Fri, Nov 9, 2012 at 11:08 AM, Nemana, Satya snem...@sonusnet.com wrote: Program: use strict; use warnings; if ($999 == 1056) { print (\nequal); } else { print (\nnot equal); } What I expect: Perl to throw me an error as $999 variable is not defined, but perl executes

Re: variable definition error not caught when using strict and warnings

2012-11-09 Thread Andy Bach
On Fri, Nov 9, 2012 at 11:08 AM, Nemana, Satya snem...@sonusnet.com wrote: if ($999 == 1056) { print (\nequal); } else { print (\nnot equal); } What I expect: Perl to throw me an error as $999 variable is not defined, but perl executes the code with a warning.(I don't expect

Re: variable definition error not caught when using strict and warnings

2012-11-09 Thread Rob Dixon
On 09/11/2012 17:08, Nemana, Satya wrote: Hi I am a little confused with this program Program: use strict; use warnings; if ($999 == 1056) { print (\nequal); } else { print (\nnot equal); } What I expect: Perl to throw me an error as $999 variable is not defined, but perl executes

RE: variable definition error not caught when using strict and warnings

2012-11-09 Thread Nemana, Satya
From: Rob Dixon [rob.di...@gmx.com] Sent: 09 November 2012 17:17 To: beginners@perl.org Cc: Nemana, Satya Subject: Re: variable definition error not caught when using strict and warnings On 09/11/2012 17:08, Nemana, Satya wrote: Hi I am a little

thread error

2012-10-15 Thread xiyoulaoyuanjia
hi listers: now i have a question is abort thread i have a main process that have ssh a remote host and everything is ok! but when i use thread it have a error like that - Thread 1 terminated abnormally: DBD::mysql::db do failed: handle 2 is owned by thread 1182010

Re: thread error

2012-10-15 Thread Shlomi Fish
Hi, On Mon, 15 Oct 2012 19:48:46 +0800 xiyoulaoyuanjia xiyoulaoyuan...@gmail.com wrote: hi listers: now i have a question is abort thread i have a main process that have ssh a remote host and everything is ok! but when i use thread it have a error like

  1   2   3   4   5   6   7   8   9   10   >