Re: Can use Perl and C in a program?

2024-08-05 Thread Manikandan
n a program? > > What part of the program uses Perl and C? > > Different repositories of Github use many languages of programming in a > project but a program only uses a language of programming. > > -- > > With kindest regards, William. > > ⢀⣴⠾⠻⢶⣦⠀ > ⣾⠁⢠⠒⠀⣿⡁

Re: Can use Perl and C in a program?

2024-07-27 Thread karl
til/get_signames.pl extracts signal names from an include file and generates c code used to make it easier to convert a string like "SIGHUP" to the integer 1 and vice versa. $ get_signames.pl signal.h #ifndef NSIG #define NSIG 31 #endif struct intstr signames[] = { INTSTR(SIGHUP), /*

Re: Can use Perl and C in a program?

2024-07-26 Thread Jeff Pang via beginners
On 2024-07-27 01:11, William Torrez Corea wrote: How can I implement these two languages of programming in a program? You want to check the following library. https://metacpan.org/dist/Inline-C/view/lib/Inline/C.pod -- regards, Jeff Pang -- To unsubscribe, e-mail: beginners-unsubscr...@perl.

Can use Perl and C in a program?

2024-07-26 Thread William Torrez Corea
How can I implement these two languages of programming in a program? What part of the program uses Perl and C? Different repositories of Github use many languages of programming in a project but a program only uses a language of programming. -- With kindest regards, William

Re: [install and use local::lib module]

2024-02-17 Thread Mike
s in the .profile file are: # Perl 5.38 export PATH=/usr/local/bin:$PATH export PERL5LIB=$HOME/perl5/lib/perl5 eval `perl -I$HOME/perl5/lib/perl5 -Mlocal::lib` Now everything works. But I still don’t understand the setup very well. What is the difference between the ‘.cpan’ and ‘perl5’ directories? Wh

Re: [install and use local::lib module]

2024-02-15 Thread Kang-min Liu
Maxim Abalenkov writes: > Now everything works. But I still don’t understand the setup very > well. What is the difference between the ‘.cpan’ and ‘perl5’ > directories? What is their purpose? Thank you and have a great day > ahead! The directory ~/.cpan/ is where the command `cpa

[install and use local::lib module]

2024-02-15 Thread Maxim Abalenkov
Dear all, How are you? I hope all is well with you. I need help please. I recently moved to a new laptop and installed Perl 5.38.2 from source. I would like to discipline myself and learn how to use the ‘local::lib’ module properly. I downloaded the source code of local::lib from cpan website

Re: Knowledge for a basic programmer and advanced programmer

2024-01-05 Thread John SJ Anderson
> If you are coding you should be backing up every > 10 minutes or more often. And you should store > a "historical" full copy of the code every 30 minutes > or more often and save them for days. No, you shouldn’t, because it is no longer 1985. You should learn how to us

Re: Knowledge for a basic programmer and advanced programmer

2024-01-05 Thread Mike
If you are coding you should be backing up every 10 minutes or more often.  And you should store a "historical" full copy of the code every 30 minutes or more often and save them for days. Mike On 1/2/24 10:33, William Torrez Corea wrote: On Tue, Jan 2, 2024 at 5:17 AM Shlomi F

Re: Knowledge for a basic programmer and advanced programmer

2024-01-02 Thread Shlomi Fish
On Sat, 16 Dec 2023 08:10:49 -0600 William Torrez Corea wrote: > What needs to know a basic and advanced programmer? > > I am a basic programmer, I don't have enough experience to be an advanced > programmer. > > How many years of experience must an advanced programmer h

Knowledge for a basic programmer and advanced programmer

2023-12-16 Thread William Torrez Corea
What needs to know a basic and advanced programmer? I am a basic programmer, I don't have enough experience to be an advanced programmer. How many years of experience must an advanced programmer have? -- With kindest regards, William. ⢀⣴⠾⠻⢶⣦⠀ ⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating s

Re: Using qr// with substitution and group-interpolation in thesubstitution part

2023-11-21 Thread gordonfish
be called from s/// replacement side thanks to the /e modifier that allows code to be executed there. Also of some note is that the /r modifier is used so that s/// returns the resulting string instead of modifying $contents, and being the last statement, said resulting string is the return

Re: Using qr// with substitution and group-interpolation in the substitution part

2023-10-26 Thread Octavian Rasnita
ew Solomon" Cc: "Josef Wolf" ; Sent: Thursday, October 26, 2023 12:07 AM Subject: RE: Using qr// with substitution and group-interpolation in the substitution part Josef, Inspired by Levi's “eval” idea, here is my solution: sub substitute_lines { my ($content

RE: Using qr// with substitution and group-interpolation in the substitution part

2023-10-25 Thread Claude Brown via beginners
things" command on your system. -Original Message- From: Claude Brown via beginners Sent: Thursday, October 26, 2023 8:07 AM To: Levi Elias Nystad-Johansen ; Andrew Solomon Cc: Josef Wolf ; beginners@perl.org Subject: RE: Using qr// with substitution and group-interpolation

RE: Using qr// with substitution and group-interpolation in the substitution part

2023-10-25 Thread Claude Brown via beginners
whatever) bar$/m, 'bar $1 baz'); print "$data\n"; The differences: - escaped the "$" so the eval gets a literal "$contents" - didn't escape "$" so the eval receives the value of $regex and $subst - moved the "g" into the sub as it

Re: Using qr// with substitution and group-interpolation in the substitution part

2023-10-25 Thread Andrew Solomon
That's a fun question, Josef! I don't think you can pass a replacement phrase around, so this is all I came up with: sub substitute_lines { my ($contents, $subst) = @_; $contents = $subst->($contents); return $contents; } my $data = "foo whatever bar"; print(substitute_lines($data, sub { $

Using qr// with substitution and group-interpolation in the substitution part

2023-10-25 Thread Josef Wolf
Hallo all, maybe this is not exactly a beginner question, but I could not find an appropriate mailing list (all other lists seem to be developer realted). Basically, I want to do the same as $data =~ s/^foo (whatever) bar$/bar $1 baz/mg; but with a different interface (because it has to be

Re: Perl version 5.8 and 5.10

2023-10-08 Thread Levi Elias Nystad-Johansen via beginners
on supported by toolchain, supporting older versions than that makes little sense in my mind: https://wikipedia.org/wiki/Perl_5_version_history?lang=en -L --- Original Message --- On Sunday, October 8th, 2023 at 2:53 AM, William Torrez Corea wrote: > I Tried to install perl version 5.8

Re: Perl version 5.8 and 5.10

2023-10-08 Thread wesley
obably is better try to update it.  > > Best Regards, > > Armando > > > > **From:** Kang-min Liu > **Sent:** Sunday, October 8, 2023 5:32:24 AM > **To:** beginners@perl.org > **Subject:** Re: Perl ve

Re: Perl version 5.8 and 5.10

2023-10-08 Thread armando perez pena
Perl version 5.8 and 5.10 於 2023年10月8日 上午11:53:46 [GMT+09:00],William Torrez Corea 寫到: I Tried to install perl version 5.8 and 5.10 with perlbrew but i can't install this version. I get the following error message: 50 tests and 269 subtests skipped. make[2]: *** [makefile:701: _test_tty] Err

Re: Perl version 5.8 and 5.10

2023-10-07 Thread Kang-min Liu
於 2023年10月8日 上午11:53:46 [GMT+09:00],William Torrez Corea 寫到: >I Tried to install perl version 5.8 and 5.10 with perlbrew but i can't >install this version. >I get the following error message: > >50 tests and 269 subtests skipped. >> make[2]: *** [makefile:701: _te

Re: Virtualmin and Webmin web hosting control panel are written in Perl 5

2022-08-03 Thread Dermot
> Turritopsis Dohrnii Teo En Ming writes: > > > > > If I want to learn Perl programming language from scratch having > > > totally no knowledge of it, how long (in terms of months or years) > > > would it take before I can confidently and proficiently modify > > &

Re: Virtualmin and Webmin web hosting control panel are written in Perl 5

2022-08-03 Thread Kang-min Liu
Turritopsis Dohrnii Teo En Ming writes: > If I want to learn Perl programming language from scratch having > totally no knowledge of it, how long (in terms of months or years) > would it take before I can confidently and proficiently modify > Virtualmin and Webmin code? Good da

Re: Virtualmin and Webmin web hosting control panel are written in Perl 5

2022-08-01 Thread Turritopsis Dohrnii Teo En Ming
erl programming language from scratch having > > totally no knowledge of it, how long (in terms of months or years) > > would it take before I can confidently and proficiently modify > > Virtualmin and Webmin code? > > Learning how to program in Perl is easy, it is like Basic or C

Re: Virtualmin and Webmin web hosting control panel are written in Perl 5

2022-08-01 Thread Olivier
Turritopsis Dohrnii Teo En Ming writes: > If I want to learn Perl programming language from scratch having > totally no knowledge of it, how long (in terms of months or years) > would it take before I can confidently and proficiently modify > Virtualmin and Webmin code? Learning ho

Virtualmin and Webmin web hosting control panel are written in Perl 5

2022-08-01 Thread Turritopsis Dohrnii Teo En Ming
Subject: Virtualmin and Webmin web hosting control panel are written in Perl 5 Good day from Singapore, I understand that Virtualmin and Webmin web hosting control panel are written in Perl 5. Source: In which perl framework is webmin written into? Link: https://archive.virtualmin.com/node

Re: Benchmark for Scala, Ruby and Perl

2022-01-17 Thread Paul Procacci
Hey John, One more follow up and then it's bedtime for me. I wanted to further this discussion just a little bit more by implementing the mmap solution that I applied to perl to ruby instead. Now all of a sudden, ruby is much much faster. My ruby source code follows: Goodnight! # rub

Re: Benchmark for Scala, Ruby and Perl

2022-01-17 Thread Paul Procacci
Hey Jon, The most glaringly obvious thing I could recommend is that at least in your perl routine (and probably the other languages) most of your time is context switching reading from the disk. Now, my perl version is indeed faster, but one has to ask themselves, was .015193256 seconds really

Re: Benchmark for Scala, Ruby and Perl

2022-01-17 Thread Paul Procacci
Hey John, On Sat, Jan 15, 2022 at 3:04 AM Jon Smart wrote: > > Hello Paul > > Do you mean by undef $/ and with <$fh> we can read the file into memory > at one time? > In most cases the short answer is yes. I have problems with your wording however given the 'g

Re: Benchmark for Scala, Ruby and Perl

2022-01-17 Thread Paul Procacci
Sorry, it's 5:00am here and needless to say it's wy past my bedtime and I'm making mistakes. The comparison should have been between both ruby versions ugh. I'll let you play though. Have a great night. On Sat, Jan 15, 2022 at 4:57 AM Paul Procacci wrote: >

Re: Benchmark for Scala, Ruby and Perl

2022-01-17 Thread Paul Procacci
beneficial. There are cases where one is more beneficial over the other. . and unfortunately it's not really well defined when to use one over the other. The general consensus has been that if you plan on jumping around a lot in a file, then mmap will be superior to read. Otherwise wh

Re: Benchmark for Scala, Ruby and Perl

2022-01-16 Thread Alex Mestiashvili
On 1/15/22 06:37, Jon Smart wrote: Hello, May I show the result of my benchmark for perl5, ruby, and scala? https://blog.cloudcache.net/benchmark-for-scala-ruby-and-perl/ Welcome you to give any suggestion to me for improving this. Thanks. The data is way to small tbh, there is no

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Jon Smart
Thanks for the geeks on the lists who pointed out a lot of problems to me. I want to add the description why I want to make this benchmark. And I tried to use mmap() for reading file but I have got no benefits from it. https://blog.cloudcache.net/why-mmap-has-no-significant-effect-in-my-code

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread John W. Krahn
On 2022-01-15 00:04, Jon Smart wrote: Hello Paul Do you mean by undef $/ and with <$fh> we can read the file into memory at one time? $/ is the input record separator, newline by default. If undefined that means that the whole file is treated as one single record. Yes that would be

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Jon Smart
Thanks Paul. I am surprised that mmap has that huge IO advantages comparing to the classic way. So ruby take more benefit from this mmap calling. Just get learned from your case. Regards On 15.01.2022 17:57, Paul Procacci wrote: Hey John, One more follow up and then it's bedtime f

Re: Benchmark for Scala, Ruby and Perl

2022-01-15 Thread Jon Smart
Hello Paul Do you mean by undef $/ and with <$fh> we can read the file into memory at one time? Yes that would be faster b/c we don't need to read file by each line, which increases the disk IO. Another questions: 1. what's the "truss" command? 2. what's

Benchmark for Scala, Ruby and Perl

2022-01-14 Thread Jon Smart
Hello, May I show the result of my benchmark for perl5, ruby, and scala? https://blog.cloudcache.net/benchmark-for-scala-ruby-and-perl/ Welcome you to give any suggestion to me for improving this. Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e

Re: Problem with DBI and placeholders

2021-04-15 Thread mailing lists via beginners
 I may not have expressed myself well, I have to migrate tables between two databases that contain millions of rows and I only need specific columns. Now it works using placeholders only for the values but is very slow for inserts even with AutoCommit disabled. Getting data from $src_db is

Re: Problem with DBI and placeholders

2021-04-09 Thread Lawrence Statton
If you have only a few dozen tables, and you need the same statement for all of them, then something like my %sth_for_table; for my $table qw / foo bar baz waldo pepper salt pork … chains/ { $sth_for_table{$table} = $dbh->prepare("whatever whatever into $table"); } then use the a

Re: Problem with DBI and placeholders

2021-04-09 Thread mailing lists via beginners
quoting field values rather than entering table or field names. "SELECT * FROM $table" is probably what you want. On Fri, Apr 9, 2021 at 12:49 PM mailing lists via beginners wrote: Hello, I am having a problem with a very simple task and I don't see where the fault is. The first

Re: Problem with DBI and placeholders

2021-04-09 Thread mailing lists via beginners
thanks, but that only works when you don't use parameters for the placeholders just try to do an insert like this: $sth = $dbh->prepare("INSERT INTO ? (?) VALUES (?)"); foreach  {    $sth->execute("test","data1","data2") && say &

Re: Problem with DBI and placeholders

2021-04-09 Thread Andrew Solomon
; > > On Friday, April 9, 2021, 2:12:01 PM GMT+2, mailing lists via beginners < > beginners@perl.org> wrote: > > > thanks Andrew > > I need to insert millions of rows so I need to have a good performance > using placeholders > > > On Friday, April 9, 2021

Re: Problem with DBI and placeholders

2021-04-09 Thread mailing lists via beginners
, April 9, 2021, 1:57:25 PM GMT+2, Andrew Solomon wrote: The ? is for quoting field values rather than entering table or field names. "SELECT * FROM $table" is probably what you want. On Fri, Apr 9, 2021 at 12:49 PM mailing lists via beginners wrote: Hello, I am having a prob

Re: Problem with DBI and placeholders

2021-04-09 Thread mailing lists via beginners
ou want. On Fri, Apr 9, 2021 at 12:49 PM mailing lists via beginners wrote: Hello, I am having a problem with a very simple task and I don't see where the fault is. The first query works with problem but the second one fails with this error:  ./test.pl OK 1 DBD::mysql::st execute fail

Re: Problem with DBI and placeholders

2021-04-09 Thread mailing lists via beginners
e" is probably what you want. On Fri, Apr 9, 2021 at 12:49 PM mailing lists via beginners wrote: Hello, I am having a problem with a very simple task and I don't see where the fault is. The first query works with problem but the second one fails with this error:  ./test.pl OK 1 DBD::my

Re: Problem with DBI and placeholders

2021-04-09 Thread Andrew Solomon
The ? is for quoting field values rather than entering table or field names. "SELECT * FROM $table" is probably what you want. On Fri, Apr 9, 2021 at 12:49 PM mailing lists via beginners < beginners@perl.org> wrote: > Hello, > > I am having a problem with a very simple t

Problem with DBI and placeholders

2021-04-09 Thread mailing lists via beginners
Hello, I am having a problem with a very simple task and I don't see where the fault is. The first query works with problem but the second one fails with this error:  ./test.pl OK 1 DBD::mysql::st execute failed: You have an error in your SQL syntax; check the manual that corresponds to

Re: question about stream data and tk

2020-12-09 Thread WILLIAM & ERIKA MARTINEZ
Good morning I am retired, no longer programming. Please remove my name/email address from your database/emailing list. Thank you will > On 12/09/2020 5:52 AM stefano cerbioni wrote: > > > hi guys i have a question > is possible insert in listbox a TCP ipStream ? Does

Re: question about stream data and tk

2020-12-09 Thread Mike
I'm thinking that is not easy - maybe not possible. I hope you prove me wrong. Mike On 12/9/20 6:52 AM, stefano cerbioni wrote: hi guys  i have  a question is  possible insert in listbox a TCP ipStream ? Does anyone  have some examples about it ?? because I don't know where to start thank

question about stream data and tk

2020-12-09 Thread stefano cerbioni
hi guys i have a question is possible insert in listbox a TCP ipStream ? Does anyone have some examples about it ?? because I don't know where to start thanks

Problem with interaction of open3, sysread and DBI (pg)

2020-03-22 Thread Mike Martin via beginners
I have a strange issue with sysread and postgres (and ffpeg/stderr) If the main program throws an error sysread stops if I write to the database (a log table) this is the program (need open3 because ffmpeg writes to stderr not stdout) use IPC::Open3; my($file,$in, $out); my $pid; use Symbol

Re: Question re remove_tree and symlinks

2019-08-24 Thread David Precious
it - set up two test directories with files, add a symlink in the first to a file in the second, then run remove_tree on the first and see what happens :) Otherwise, File::Path uses unlink() to remove the files, the doco for which is at https://perldoc.perl.org/functions/unlink.html That isn&#x

Question re remove_tree and symlinks

2019-08-23 Thread Mike Martin
Am I right in believing that remove_tree from File::Path does not follow symlinks, ie: does not remove the linked file only the link if there are links in the direstories removed eg: #!/usr/bin/perl use strict; use File::Path('make_path','remove_tree'); my $dir='testdellink';# contains links to fi

Re: Open and perl sub

2019-08-08 Thread Shlomi Fish
Hi Mike, On Thu, 8 Aug 2019 15:40:42 +0100 Mike Martin via beginners wrote: > Is it possible to have the output of a perl module piped to open (open3 in > my case), so I can use a file handle contains the output passed to sysread > > Odd question I know > you can use https://en.wikipedia.org/

Open and perl sub

2019-08-08 Thread Mike Martin via beginners
Is it possible to have the output of a perl module piped to open (open3 in my case), so I can use a file handle contains the output passed to sysread Odd question I know Thanks

Re: Is there a definition of what is a string in perl, and what is it?

2019-05-21 Thread Uri Guttman
On 5/21/19 8:10 AM, hwilmer wrote: I'm not overthinking anything.  I was trying to find out if what currently happens to work under given conditions does so by chance or luck, or if I can be reasonably sure that it was done right because it is how things work, and it will work under diff

Re: Is there a definition of what is a string in perl, and what is it?

2019-05-17 Thread Uri Guttman
lification, strings are very complicated things.  You might imagine a "binary string" as a number of consecutive bytes, with "consecutive" meaning that one byte comes after the other, and the order in which they come is relevant.  You could describe a string like that, bu

Re: Is there a definition of what is a string in perl, and what is it?

2019-05-17 Thread hwilmer
--- and never in lines unless they get in the way and force me to consider them. A string is not a single value. And when you keep reading until you get to the "Discussion" section, you would have to conclude that there are no characters in perl, and I'm getting back to basical

Re: Is there a definition of what is a string in perl, and what is it?

2019-05-16 Thread Andrew Solomon
ml For example, noting that print 4; and print 0b100; both output 4, would you refer to 0b100 as a binary string? On Thu, May 16, 2019 at 5:51 PM hwilmer wrote: > > Hi, > > since I'm trying to use "binary strings", the question comes up if there > is a definitio

Is there a definition of what is a string in perl, and what is it?

2019-05-16 Thread hwilmer
Hi, since I'm trying to use "binary strings", the question comes up if there is a definition of what is a string in perl, and what is it? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/

Re: Perl Email and WuFoo Forms.

2018-10-04 Thread Shlomi Fish
Hi James, On Tue, 2 Oct 2018 14:18:35 +0100 James Kerwin wrote: > Hi All, > > I have a Perl script that pulls in some information, generates an email, > sends the email to a person and provides a URL to a WuFoo form. This URL > contains the information to populate most fields

Re: Perl Email and WuFoo Forms.

2018-10-02 Thread Илья Рассадин
Hi! You can set up javascript handler for the form and submit it automatically if all fields are filled. On 02/10/2018 16:18, James Kerwin wrote: Hi All, I have a Perl script that pulls in some information, generates an email, sends the email to a person and provides a URL to a WuFoo form

Perl Email and WuFoo Forms.

2018-10-02 Thread James Kerwin
Hi All, I have a Perl script that pulls in some information, generates an email, sends the email to a person and provides a URL to a WuFoo form. This URL contains the information to populate most fields in the form and could populate all of the fields. What I don't know is how to submit the

RE: XML::LibXML and comments

2018-09-11 Thread John Cortland Morgan
Hi Lawrence, Works great, thanks! Never thought of appending the comment directly to the $doc, just assumed I Needed to set the root first. Regards, John From: Lawrence Statton Sent: Monday, September 10, 2018 9:44 PM To: beginners@perl.org Subject: Re: XML::LibXML and comments On Sep

Re: XML::LibXML and comments

2018-09-10 Thread Lawrence Statton
> On Sep 10, 2018, at 6:33 AM, John Cortland Morgan > wrote: > > Hi, > > I'm trying to place a comment directly after the XML declaration using > XML::LibXML, > But cannot seem to manage, always receiving error: > > setDocumentElement: ELEMENT node required at .../LibXML.pm line 1393 > >

Re: XML::LibXML and comments

2018-09-10 Thread Andy Bach
Take a look at: https://stackoverflow.com/questions/19411152/libxml-inserting-a-comment use XML::LibXML; my $doc = XML::LibXML::Document->new;my $root = $doc->createElement("doc"); $doc->setDocumentElement($root); $root->appendChild($doc->createElement("JJ")); $root->appendChild($doc->createCommen

XML::LibXML and comments

2018-09-10 Thread John Cortland Morgan
Hi, I'm trying to place a comment directly after the XML declaration using XML::LibXML, But cannot seem to manage, always receiving error: setDocumentElement: ELEMENT node required at .../LibXML.pm line 1393 What I would like: testing My relevant code thus far: My $dom = XML::LibXML

Re: local and auto flush

2018-05-29 Thread Brandon McCaig
y a new scope is allocated when you use local and all code within the current *and nested* scopes will see the new value, but as soon as you leave the current scope (by any means, including an "exception"!) it will revert back to its previous value. [1] https://en.wikipedia.org/wiki/Scope_(compute

Re: local and auto flush

2018-05-19 Thread perl
Many thanks for the very helpful comments from Andrew and Andy. For the first time, I have a clear idea of what local and auto flushing are doing for me. I know I’d get educated here! -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h

Re: local and auto flush

2018-05-15 Thread Andy Bach
A local modifies the listed variables to be local to the enclosing block, file, or eval. If more than one value is listed, the list must be placed in parentheses. See "Temporary Values via local()" in perlsub for details, including issues with tied array

Re: local and auto flush

2018-05-15 Thread Andrew Solomon
Hi Rick, Regarding "local": $| is a global* variable so you use local to isolate this change to only where you need it. To see what I mean, run this: print "step1: $| \n"; { local $| = 1; print "step2: $| \n"; } print "step3: $| \n"; an

local and auto flush

2018-05-15 Thread Rick T
local go out of scope when the TT is called? More broadly, do I actually need local? Do I actually need auto flushing? The authors of PTT and PBP assumed that persons reading their books would be fairly accomplished programmers — but I’m not. So can you educate me? # $| = 1; local $| = 1

Re: TLS and Perl

2018-01-26 Thread SurfShop
> On Jan 25, 2018, at 11:37 AM, David Precious wrote: > > then that uses LWP::UserAgent under the hood for the communication with > authorize.net; it doesn't set any SSL/TLS-specific options when calling > LWP::UserAgent, unless you're causing it to yourself. > > LWP::UserAgent will use LWP::Pro

Re: TLS and Perl

2018-01-25 Thread David Precious
On Thu, 25 Jan 2018 10:19:26 -0800 SurfShop wrote: > I keep getting emails from Authorize.net about their upcoming > disablement of TLS 1.0 and TLS 1.1 and I need to know if that has > anything to do with Perl or not. I don't have any code in SurfShop > that references

Re: TLS and Perl

2018-01-25 Thread SurfShop
> On Jan 25, 2018, at 10:43 AM, Darryl Philip Baker > wrote: > > If you do not know TLS 1.0 and TLS 1.1 have a vulnerability in the design of > the protocol and they are being deprecated. Currently only TLS 1.2 now and > TLS 1.3 when finalized are considered safe. TLS

Re: TLS and Perl

2018-01-25 Thread Darryl Philip Baker
TLS is handled in the connection. So if your Perl code is opening the connection directly it would be in the SSLeay module and OpenSSL libraries. If your Perl cod is behind a webserver it is the webserver that handles the connection. Only if your Perl code is being distributed to others to run

Re: TLS and Perl

2018-01-25 Thread Darryl Philip Baker
If you do not know TLS 1.0 and TLS 1.1 have a vulnerability in the design of the protocol and they are being deprecated. Currently only TLS 1.2 now and TLS 1.3 when finalized are considered safe. TLS 1.2 was defined in August of 2008 so if you are using anything developed in the last five years

TLS and Perl

2018-01-25 Thread SurfShop
I keep getting emails from Authorize.net about their upcoming disablement of TLS 1.0 and TLS 1.1 and I need to know if that has anything to do with Perl or not. I don't have any code in SurfShop that references either SSL or TLS, so maybe that's handled by Perl itself or a

Re: perlbrew and modules

2017-12-07 Thread SSC_perl
551.26554/CGI-4.38/lib'; > Right, so that's your 500 error. But you added the same line in the original > (before the use Carp line?) and it *didn't* fix the problem? Can you sym > link the .cpanm dir under one of those @INC dirs. Hm, there's also an > PERL5LIB env va

Re: perlbrew and modules

2017-12-07 Thread Andy Bach
>> I found a .cpanm directory in /home/user where all the modules are >> being installed. Could that have anything to do with it? I tried adding >> that directory with "use lib" but I still get the 500 error. > I ran your script and, when I manually i

Re: perlbrew and modules

2017-12-07 Thread SSC_perl
Panel. I couldn't find another error log in WHM. > Hmm, can you try... I ran your script and, when I manually include the .cpanm directory, it returns: /home/user/cgi-bin/test.pl syntax OK otherwise, it returns: Can't locate CGI/Carp.pm in @INC (you may need to install

Re: perlbrew and modules

2017-12-07 Thread Andy Bach
ed as it should, with > 'fatalsToBrowser' showing any errors. But the VPS is just backwards - > adding it crashes the script! This actually happens with any module and, > yes, they are installed: > > > cpanm install CGI::Carp > install is up to date. (0.01) > CGI::Car

Re: perlbrew and modules

2017-12-07 Thread SSC_perl
> On Dec 7, 2017, at 1:40 PM, Shlomi Fish wrote: > > you should make sure that the modules you wish to use are in one of the > dirs in @INC. cpanm should install to the global directories. Another question. How can I check to make sure cpanm was installed properly under perlbrew? Fra

Re: perlbrew and modules

2017-12-07 Thread SSC_perl
; do that on it's own? There's only one perl install and one alias, and the alias is selected. Running "perl -v" returns version 5.26.1 so how can I get perlbrew set to install in the current installation? Frank -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For

Re: perlbrew and modules

2017-12-07 Thread Shlomi Fish
On Thu, 7 Dec 2017 12:44:51 -0800 SSC_perl wrote: > > On Dec 7, 2017, at 12:04 PM, Shlomi Fish wrote: > > > > What does: > > > > say "@INC"; > > > > say if you add it to the script? > > I get: > > /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-linux > /h

Re: perlbrew and modules

2017-12-07 Thread SSC_perl
> On Dec 7, 2017, at 12:04 PM, Shlomi Fish wrote: > > What does: > > say "@INC"; > > say if you add it to the script? I get: /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1/x86_64-linux /home/user/perl5/perlbrew/perls/perl-5.26.1/lib/site_perl/5.26.1 /home/user/

Re: perlbrew and modules

2017-12-07 Thread Shlomi Fish
500 error. > > On the shared server, this worked as it should, with > 'fatalsToBrowser' showing any errors. But the VPS is just backwards - adding > it crashes the script! This actually happens with any module and, yes, they > are installed: > > > cpanm ins

perlbrew and modules

2017-12-07 Thread SSC_perl
d as it should, with 'fatalsToBrowser' showing any errors. But the VPS is just backwards - adding it crashes the script! This actually happens with any module and, yes, they are installed: > cpanm install CGI::Carp install is up to date. (0.01) CGI::Carp is up to date. (4.38) I have

Re: perlbrew and cron

2017-12-07 Thread Hao Wu
path to the script, as mentioned > by ikegami here: > > https://stackoverflow.com/questions/47457834/running-a- > perl-script-from-crontab-when-you-use-perlbrew > > Unfortunately, I don't have anymore to go on than this as, > literally, nothing happens - the script doe

Re: perlbrew and cron

2017-12-07 Thread Chris Fedde
more to go on than this as, > literally, nothing happens - the script doesn't get run and I don't get an > error email from cron, so I don't know where to look. > > Thanks, > Frank > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >

perlbrew and cron

2017-12-07 Thread SSC_perl
Unfortunately, I don't have anymore to go on than this as, literally, nothing happens - the script doesn't get run and I don't get an error email from cron, so I don't know where to look. Thanks, Frank -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additio

Re: Problem with perlbrew and LiteSpeed

2017-12-07 Thread SSC_perl
> On Dec 5, 2017, at 10:23 AM, Chas. Owens wrote: > > Test one: does the file actually exist. Thanks for the tests. It turns out there was a typo in the shebang line. It was a tough one to diagnose as the error said the file wasn't there. Frank -- To unsubscribe, e-mail: beginners-

Re: Using Pack and Unpack

2017-12-07 Thread Martin McCormick
"John W. Krahn" writes: > > $ perl -le'my $x = sprintf q/%b/, 0xff; print $x' > > > use Data::Dumper; > $Data::Dumper::Useqq = 1; > > my $txstart = pack 'h*', 'fefe5a95'; > > print Dumper $txstart; Thank you

Re: Using Pack and Unpack

2017-12-07 Thread Shlomi Fish
rials/perl-for-newbies/part2/#page--debugger--DIR ), https://metacpan.org/pod/Data::Dumper , https://metacpan.org/pod/DDP , and some debugger GUIs such as https://en.wikipedia.org/wiki/Data_Display_Debugger . Regards, Shlomi > Thank you. > > Martin McCormick >

Re: Using Pack and Unpack

2017-12-06 Thread John W. Krahn
On Wed, 2017-12-06 at 21:53 -0600, Martin McCormick wrote: > A perl program needs to send binary data to an external device > such that 0xff looks like $ perl -le'my $x = sprintf q/%b/, 0xff; print $x' > I have a line in the program as follows: > > my $txstart = pack("

Using Pack and Unpack

2017-12-06 Thread Martin McCormick
A perl program needs to send binary data to an external device such that 0xff looks like I have a line in the program as follows: my $txstart = pack("h*","fefe5a95"); Are those 4 bytes usable as the binary data fe fe 5a 95? Is there a good way when running perl -d to

Re: Problem with perlbrew and LiteSpeed

2017-12-05 Thread Chas. Owens
Test one: does the file actually exist. It is possible that the user is different, or something else in the park is wrong Test two: are the permissions on the file and the directories leading up to the file correct. If the process can't see the file, then there will be a problem. Test

Problem with perlbrew and LiteSpeed

2017-12-05 Thread SSC_perl
I'm hoping someone has seen this before and can point me in the right direction. I'm moving my site to a VPS to be able to use a more modern version of Perl, but I've run into a problem. I installed perlbrew along with Perl 5.26.1. That went smoothly. However

Re: "Information station" using Perl and Raspberry Pi

2017-08-01 Thread SSC_perl
There was some good information in this thread. Thank you! > On Jul 26, 2017, at 2:38 AM, David Precious wrote: > > FWIW, it might be sensible to not fully discount the HTML option - > seting an RPi up to start a browser on boot in full-screen "kiosk mode" > is

Re: "Information station" using Perl and Raspberry Pi

2017-07-27 Thread Mike Flannigan
irect experience with Raspberry Pi, but it seems clear it would probably work if you are abandoning the watching of TV on the set. I'd like to hear how this works out for you. Mike On 7/25/2017 2:21 PM, beginners-digest-h...@perl.org wrote: Subject: "Information station" using P

  1   2   3   4   5   6   7   8   9   10   >