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 source

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
8802 > > 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\App

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\cac

Re: Error when using the executable perl in client machine

2020-04-20 Thread Manikandan Narayan
t; You might 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>

Re: Error when using the executable perl in client machine

2020-04-20 Thread sisyphus
M Manikandan Narayan < 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\c

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

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

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
fically didn't want one. Smacks of cargo cult but I'd never > 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 canno

Re: slurp error

2018-07-27 Thread Andy Bach
x27;t want one. Smacks of cargo cult but I'd never argue with him. On 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

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
{ > > if ($@ =~ /Compilation failed in require/) { > > say "compilation failed"; > > } > > elsif ($@ =~ /Can't locate (.*) in \@INC/) { > > say "module $1 not found"; > > } else { > >

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

2017-11-17 Thread Simon Reinhardt
=~ /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://metacpan.org/pod/Try::Tiny#BACK

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

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= &#

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-09 Thread Jitendra B
end. > > On Thu, Sep 10, 2015 at 1:54 AM, Jitendra B wrote: > >> 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 s

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

2015-09-09 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 wrote: > Dear Sir/Madam, > > while I try to connect and query some data from bugzilla, I am getting > following error. > > Error: > > RPC::XML::Client::send_re

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 lin

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 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;

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

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: l

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" 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

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 i

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 wrote: > On Tue, 15 Jul 2014 00:07:16 +1200 > Benjamin Fernandis wrote: > > > Hi, > > > > I got below error wh

Re: module installation error from cpan cli

2014-07-14 Thread David Precious
On Tue, 15 Jul 2014 00:07:16 +1200 Benjamin Fernandis 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 (@IN

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::

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:: v

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 warn

Re: uninitialized error for hash printing

2014-06-22 Thread John Delacour
On 22 Jun 2014, at 21:01, 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"; > } > -- > Use of uninitialized

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

Re: perlbrew error

2014-06-15 Thread John SJ Anderson
On Sun, Jun 15, 2014 at 10:31 AM, Subinoy Biswas 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: > Can't locate

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 subinoybis

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

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

2014-05-28 Thread Sebastien Feugere
_ > *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

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

2014-05-28 Thread Priyal Jain
, what is the issue. Regards, 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

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 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! > Expect will wo

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

2014-05-16 Thread Priyal Jain
:Netconf module in my system. Thanks, Regards, Priyal -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 P

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 wrote: > Hello, > > I am uploading my module Net::Netconf > http://search.cpan.org/search?mode=all&query=net%3A%3Anetconf in CPAN, but > its giving error of dependency n

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=all&query=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.

Re: error installing catalyst via cpan

2014-02-10 Thread Octavian Rasnita
an Rasnita" Cc: 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 wrote: >> Try installing Catalyst with cpanm. Or join Catalyst mailing list and ask >> there. There may be more that

Re: error installing catalyst via cpan

2014-02-10 Thread Luca Ferrari
On Mon, Feb 10, 2014 at 6:22 PM, Octavian Rasnita 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 -- To unsubscribe

Re: error installing catalyst via cpan

2014-02-10 Thread Luca Ferrari
On Mon, Feb 10, 2014 at 5:24 PM, Rodney Simioni 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 For additional commands, e-m

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" To: Sent: Monday, February 10, 2014 5:01 PM Subject: error installing catalyst via cpan Hi

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: "'' trapped by operation mask at (eval 308) line 1.\cJ at /usr/share/perl/5.14/CPAN/Distribution.p

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 of

Re: Gigantic file size processing error

2014-01-03 Thread Rob Dixon
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
On 01/03/2014 12:48 PM, Shawn H Corey wrote: On Fri, 03 Jan 2014 12:22:48 -0500 Uri Guttman 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/Displ

Re: Gigantic file size processing error

2014-01-03 Thread Shawn H Corey
On Fri, 03 Jan 2014 12:22:48 -0500 Uri Guttman 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 -- Don't stop whe

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 c

Re: Gigantic file size processing error

2014-01-03 Thread Uri Guttman
ary arg 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 woul

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:

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 th

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 "s/oneTh

Re: Gigantic file size processing error

2014-01-03 Thread kurtz le pirate
e 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 same > case as not processing, any guidance. regards Manikandan Hi, have you try this kind of command : perl -p -i -e "s/oneThing/otherThin

Re: Gigantic file size processing error

2014-01-02 Thread David Precious
On Thu, 02 Jan 2014 12:19:16 -0500 Uri Guttman 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) write $_

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 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 f

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 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 feat

Re: Gigantic file size processing error

2014-01-02 Thread David Precious
On Thu, 02 Jan 2014 11:56:26 -0500 Uri Guttman 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 :) > > that IS tie::

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 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, d

Re: Gigantic file size processing error

2014-01-02 Thread David Precious
On Thu, 02 Jan 2014 11:18:31 -0500 Uri Guttman 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 the whole file i

Re: Gigantic file size processing error

2014-01-02 Thread Uri Guttman
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 as a wh

Re: Gigantic file size processing error

2014-01-02 Thread David Precious
t; 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 y

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: raise an error

2013-09-25 Thread John SJ Anderson
On Wed, Sep 25, 2013 at 6:45 PM, Ken Peng 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.

Re: raise an error

2013-09-25 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/

Re: raise an error

2013-09-25 Thread Shlomi Fish
Hi Ken, On Thu, 26 Sep 2013 09:45:45 +0800 Ken Peng 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/release/E

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/

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

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

2013-09-04 Thread J M
second one, 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::Form

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 ? , if no => t

Re: Excel Sheet Gen Code gives error

2013-07-15 Thread Pritish Pattanaik
on, Jul 15, 2013 at 4:31 PM, Tom, Jentil Kuriakose < > c_j...@qti.qualcomm.com> wrote: > >> >> Hi, >> >> I have written simple EXCEL sheet gen PEARL code: >> >> #!/usr/bin/perl >> >> use strict; >> use Spreadsheet

Re: Excel Sheet Gen Code gives error

2013-07-15 Thread Jing Yu
e(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-solaris-64in

Excel Sheet Gen Code gives error

2013-07-15 Thread Tom, Jentil Kuriakose
$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-solaris-64int /usr/perl5/5

Re: Perl error codes and warnings

2013-05-29 Thread *Shaji Kalidasan*
o God. --- From: Warren James - jawarr To: '*Shaji Kalidasan*' ; timothy adigun <2teezp...@gmail.com>; Charles DeRykus Cc: Perl Beginners Sent: Wednesday, 29 May 2013 7:38 PM Subject: RE: Perl error codes and warnings Shaji - Upo

RE: Perl error codes and warnings

2013-05-29 Thread Warren James - jawarr
to:shajiin...@yahoo.com] 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

Re: Perl error codes and warnings

2013-05-29 Thread *Shaji Kalidasan*
m> To: *Shaji Kalidasan* Cc: Perl Beginners 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* wrote: Greetings, > > >Where can I get more information on Perl's most common er

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* 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] &g

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 warning

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/; foreac

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 exist

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." wrote: > Hello Shlomi, > Sunday, May 26, 2013, 5:37:29 PM, you wrote: > > > What are you trying to do? Are you trying to build pe

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
his: > > d:/mingw32/bin/../lib/gcc/i686-w64-mingw32/4.8.0/../../../../i686-w64-mingw32/bin/ld.exe: > ..\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 t

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.
n/ld.exe: ..\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 the

Re: Permission error

2013-04-24 Thread Florian Huber
} I 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

Permission error

2013-04-24 Thread Florian Huber
("Could not rename file: $!\n"); } I 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

Re: use utf-8 results in error

2012-11-22 Thread Jim Gibson
rld.pl line 2. > BEGIN failed--compilation aborted at helloworld.pl line 2. > > I am puzzled 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 m

Re: use utf-8 results in error

2012-11-22 Thread boB Stepp
On Thu, Nov 22, 2012 at 11:54 PM, ranveer raghuwanshi 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, e-mail: beginners-unsubscr.

use utf-8 results in error

2012-11-22 Thread boB Stepp
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? Thanks! boB -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-

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

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 no

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 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 p

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 wrote: > Program: > use strict; > use warnings; > > if ($999 == 1056) > { > print ("\nequal"); > } > else > { > print ("\nnot equal"); > } > > What I expect: Perl to throw me an

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 war

Fw: thread error

2012-10-15 Thread Shlomi Fish
Please reply to the list. Regards, Shlomi Fish Begin forwarded message: Date: Mon, 15 Oct 2012 21:20:02 +0800 From: xiyoulaoyuanjia To: Shlomi Fish Subject: Re: thread error is there a way for some threads using the same *Net::SSH::Perl* connection 2012/10/15 Shlomi Fish >

Re: thread error

2012-10-15 Thread Shlomi Fish
Hi, On Mon, 15 Oct 2012 19:48:46 +0800 xiyoulaoyuanjia 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 that > -

  1   2   3   4   5   6   7   8   9   10   >