Re: Can a perl programmer find jobs today?
https://jobs.perl.org/ If you are in the right place, it is not that hard to find a perl job. On Fri, Feb 17, 2023 at 7:46 PM winnie hw wrote: > I know perl/ruby/python and use all of them for work. > But I didn't see an employer seeking the perl programmer. > Can we the perl programmers find any professional jobs today? > > Thanks. >
Re: function alias
https://stackoverflow.com/questions/4512094/aliasing-a-function-in-perl On Wed, Sep 4, 2019 at 2:17 PM Wesley Peng via beginners wrote: > Hello, > > How to make a function alias in perl? for example, says() is alias to > print(). > > thanks. > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >
Re: What are the environmental variables used by Perl?
https://perldoc.perl.org/Env.html On Thu, May 30, 2019 at 8:58 PM Jeffrey Walton wrote: > Hi Everyone, > > I need to fix a self test for a C library written in Perl. I don't > know Perl so it is a struggle. I am happy to refer to the manual, and > it is located at https://linux.die.net/man/1/perl (and others). It is > not clear to me which section of the manual covers environmental > variables used by Perl. > > I found this online, but it does not appear that Perl actually honors > PATH: https://docs.perl6.org/programs/03-environment-variables . (I > also found a lot of noise; like how to set and read an envar from > Perl). > > Which section of the manual can I find a list of environmental > variables used by Perl? Is there even a section that covers it? > > Or, what are the environmental variables used by Perl? > > Thanks in advance. > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > >
Re: perlbrew and cron
0 23 * * * /path/to/perlbrew exec --with perl-5.20.0 perl /path/to/app.pl On Thu, Dec 7, 2017 at 10:38 AM, SSC_perlwrote: > After moving to a VPS, I'm finally able to use perlbrew to use the > latest perl, but it's not working the same as it does on my Mac. > > In terminal, I can call a perl script with either the full path to > perl or with an alias I've set up in .bashrc. So far, so good. However, > to run a script with cron, I can't seem to get it to run with the perlbrew > version. I've even tried it with just the 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 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/ > > >
Re: Question about Beginning Perl by Simon Cozens
https://www.amazon.com/Beginning-Perl-Curtis-Poe/dp/1118013840 This one is more relevant. I read it and it is very good. However, If you never programming before Learning Perl probably is better to start with. On Thu, Sep 1, 2016 at 9:52 AM, Walker, Michael E < michael.e.walk...@boeing.com> wrote: > Hi, even though *Beginning Perl* dates back to 2000, is it still relevant > for learning today? I wondered, because when Googling, I saw posts > recommending against its use, but yet it is still listed at books.perl.org. > Please discuss, or point me to the archive on this list where this has been > discussed. Thank you. >
overload during match
I use a variable which have a method overload to string in regex replace. the result is string only if match success. I thought it should be always string. Could anyone explain how this happen? Thanks. Below is the code use Text::Xslate::Type::Raw; # a wraper of string, provide as_string, which is overloaded to string, return the string. use DDP; sub strip_x { return $_[0]=~s/x//gr } my $raw_a = Text::Xslate::Type::Raw-new(a); p $raw_a; my $striped_a = strip_x($raw_a); p $striped_a; my $raw_b = Text::Xslate::Type::Raw-new(x); p $raw_b; $striped_b = strip_x($raw_b); p $striped_b; __END__ Text::Xslate::Type::Raw { public methods (3) : (), as_string, new private methods (0) internals: a } Text::Xslate::Type::Raw { public methods (3) : (), as_string, new private methods (0) internals: a } Text::Xslate::Type::Raw { public methods (3) : (), as_string, new private methods (0) internals: x }
Re: Looking for introductory to advanced examples of RESTful programming in Perl
what you looking for is not a rest server, but rest client. For JIRA, https://metacpan.org/pod/JIRA::REST I did not check the source, but it is should be a wrapper around some http client. you can follow Shlomi Fish's link to learn more about web automation as a start and then check the JIRA::REST source. On Tue, Aug 11, 2015 at 8:46 PM, Kenneth Wolcott kennethwolc...@gmail.com wrote: Hello again; take a look at http://www.todobackend.com/ you can port the mojolicious one to Dancer as a learning experience. Thank you for the tips... You'd have to try any of the web framework for creating RESTful API You can try Mojolicious http://mojolicio.us/perldoc Or you can try dancer2. https://metacpan.org/pod/Dancer2::Cookbook#Writing-a-REST-application https://metacpan.org/pod/Dancer2::Tutorial Again, thanks for the tips... Perhaps I didn't phrase my question very well. If I have an API for JIRA or an API for some other application that is provided in a RESTful manner, do I use Dancer or Mojolicious? What would I do if the API I needed to interface with in Perl was JSON? A long time ago I wrote a portion of a Perl-based web app that interfaced with an XML-based API, but I've never done JSON or RESTful with Perl. Thanks, Ken -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Looking for introductory to advanced examples of RESTful programming in Perl
take a look at http://www.todobackend.com/ you can port the mojolicious one to Dancer as a learning experience. On Tue, Aug 11, 2015 at 6:50 PM, Kenneth Wolcott kennethwolc...@gmail.com wrote: Hello; I'm looking for introductory to advanced examples of RESTful programming in Perl preferably with some good explanations and best practices. Thanks, Ken Wolcott -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Good books to study perl interpreter
Hi, rakesh, search 'perl internal', will give you most of the result. *Extending and Embedding Perl* is the book you are looking for. On Mon, Mar 30, 2015 at 9:42 AM, rakesh sharma rakeshsharm...@hotmail.com wrote: Hi all Please suggest nice books to know perl interpreter. In depth books is that i am looking for. Thanks Rakesh
Re: Can't Install Mojolicious on Shared Server
use DigitalOcean about $5 a month. you get everything you need. I am running Dancer2 in DigitalOcean, runs great. On Tue, Jul 29, 2014 at 4:25 PM, Mike Flannigan mikef...@att.net wrote: I pay about $8 per month for a shared server hosting at Hostgator. I recently asked Hostgator to install Mojolicious on my account because I wanted to migrate away from CGI. Hostgator tells me they can't install Mojolicious on a shared server as to install any custom modules you will need root access to the server especially for one such as Mojolicious which is a Full stack HTTP and WebSocket client/server implementation with IPv6, TLS, SNI, IDNA, Comet (long polling), keep-alive, connection pooling, timeout, cookie, multipart, proxy and gzip compression support. Unfortunately we will not install any modules that opens sockets and acts as a server. They also can't install Fastcgi on shared servers due to memory issues. They did install CGI::Simple. It appears dedicated servers are $200 per month, or slightly more. http://www.hostgator.com/dedicated I'm not likely to do that. Does anybody here have any suggestions on what I can do other than go back to CGI? I asked about Catalyst and I'll see what they say to that. Are there any shared hosting plans that allow the installation of Mojolicious? Mike -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Grabbing HTML fields, return them as hash
http://mojolicio.us/perldoc/Mojo/DOM not exactly what you want, but it is good to use. On Mon, Jun 9, 2014 at 12:25 PM, Mike ekimduna...@gmail.com wrote: Hello everyone. Can anyone point me in the direction of a module that will allow me to grab HTML fields and return them as a hash? Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/
Re: Brackets in scalar and array
Hi, you can find the answer here, http://perlmaven.com/scalar-and-list-context-in-perl Good Luck to your exam! On Thu, May 29, 2014 at 1:20 PM, James Kerwin jkerwin2...@gmail.com wrote: Hello all, long time lurker, first time requester... I have a Perl exam tomorrow and came across a question that I just cannot find an answer to (past paper, this isn't cheating or homework etc.). Explain the difference between: ($test)=(@test); And $test=@test; If anybody could shed any light on this I'd be very grateful. Thanks, James.
Re: don't understand for a package
I think Starman.pm is for document and version only. follow the code here. https://metacpan.org/source/MIYAGAWA/Starman-0.4009/script/starman#L18 https://metacpan.org/source/MIYAGAWA/Plack-1.0030/lib/Plack/Runner.pm https://metacpan.org/source/MIYAGAWA/Plack-1.0030/lib/Plack/Loader.pm#L41 $server_class = Plack::Util::load_class($server, 'Plack::Handler'); $server is Starman, so the server_calss is Plack::Handler::Starman https://metacpan.org/source/MIYAGAWA/Starman-0.4009/lib/Plack/Handler/Starman.pm The code will not cheat, so be patient. On Wed, May 21, 2014 at 7:51 PM, Yonghua Peng sys...@mail2000.us wrote: Hello members, I run this command to install Starman webserver working along with Dancer. $ sudo cpanm Starman This run successfully. Then I take a look at the source of Starman, found it has only 6 lines code: package Starman; use strict; use 5.008_001; our $VERSION = '0.4009'; 1; __END__ (see http://cpansearch.perl.org/src/MIYAGAWA/Starman-0.4009/lib/Starman.pm ) How a Starman webserver can run with this nothing actual code? Thanks.