• Shaarli
  • Tag cloud
  • Picture wall
  • Daily
  • RSS
  • Login
4367 shaares
4 / 8
Filters
148 results tagged perl

json - "Fatal error: 'EXTERN.h' file not found" while installing Perl modules - Stack Overflow

QRCode

First, do not use the system Perl on MacOS. The installed version is for Apple, not for you

The best practice seems to be starting with a Perl using brew install perl and work in this environment, remembering to setup your bash_profile as directed by the installer.

Also worth remembering to do a brew link perl. If you receive warnings about this clobbering what looks like system Perl libraries don't worry - these are likely modules that were installed by you over the top and it will cause you less trouble to link over these. If you have concerns, make a note of which module installs will be cleared and re-install them once your environment is configured ( ie your module installer approach is configured using cpanm or sticking with the old perl -MCPAN -e shell etc)

(Other languages like Ruby have the same issue)

https://stackoverflow.com/questions/52682304/fatal-error-extern-h-file-not-found-while-installing-perl-modules
October 3, 2019 at 2:34:04 PM EDT *
perl macos
FILLER

A Perl getopts example | alvinalexander.com

QRCode

Perl getopts FAQ: Can you demonstrate how to use the getopts function? (Also written as, "Can you demonstrate how to read Perl command line arguments?")

http://alvinalexander.com/perl/perl-getopts-command-line-options-flags-in-perl
August 21, 2019 at 10:46:18 AM EDT *
perl
FILLER

App::Stacktrace - Stack trace - metacpan.org

QRCode

perl-stacktrace prints Perl stack traces of Perl threads for a given Perl process. For each Perl frame, the full file name and line number are printed.

https://metacpan.org/pod/App::Stacktrace
July 8, 2019 at 11:15:01 AM EDT *
perl debugger linux
FILLER

David Golden - "Taking Perl to Eleven with Higher-Order Functions"

QRCode
# Transformation helper function
sub _x {
  my $v = shift;
  my $is_code = ref($v) eq 'CODE';
  return $is_code ? $v->() : $v; # What about arguments to $v??
}

Data::Fake

https://www.youtube.com/watch?v=USF4BHMFKbg
July 3, 2019 at 1:52:05 PM EDT *
perl
FILLER

Lookahead and Lookbehind Tutorial—Tips &Tricks

QRCode

Lookarounds often cause confusion to the regex apprentice. I believe this confusion promptly disappears if one simple point is firmly grasped. It is that at the end of a lookahead or a lookbehind, the regex engine hasn't moved on the string. You can chain three more lookaheads after the first, and the regex engine still won't move. In fact, that's a useful technique.

https://www.rexegg.com/regex-lookarounds.html
June 14, 2019 at 1:45:16 PM EDT *
perl regex
FILLER

Deploying Perl Apps using Docker, Gitlab & Kubernetes

QRCode

German Perl Workshop 2019 München 2019-03-06
Thomas Klausner

https://domm.plix.at/talks/2019_munich_perl_docker_gitlab_kubernetes/index.html
April 26, 2019 at 9:53:31 AM EDT *
perl docker
FILLER

Moose is Perl: a guide to the new revolution | YouTube

QRCode

Ricardo Signes at Oscon - July 20-24, 2014

https://www.youtube.com/watch?v=LKXvG6VKew4
April 11, 2019 at 11:27:46 AM EDT *
perl moose
FILLER

Fork yeah!

QRCode

Recently at work I had to speed up a Perl script that processed files. Perl can spawn multiple processes with the fork function, but things can go awry unless you manage the subprocesses correctly. I adding forking to the script and was able to improve the script’s throughput rate nearly 10x, but it took me a few attempts to get it right. In this article I’m going to show you how to use fork safely and avoid some common mistakes.

https://www.perl.com/article/fork-yeah-/
April 5, 2019 at 9:13:56 AM EDT *
perl programming
FILLER

Perl Advent Calendar 2017 - Tiny Path Handling

QRCode

Path::Tiny is a tiny abstraction around file paths that makes it very easy to manipulate them and perform common operations on them.

Recently I've started using Path::Tiny in preference to both the internal Perl operators for file manipulation and the other abstractions like File::Spec and Path::Class because it makes it really easy to handle common operations easily without making the kind of common mistakes that those other approaches often result in when you're coding quickly.

http://perladvent.org/2017/2017-12-11.html
December 5, 2018 at 9:01:34 AM EST *
perl advent
FILLER

Perl Advent Calendar 2018 - Christmas Quoting

QRCode

use B qw(perlstring);
say STDERR 'DEBUG: The next $childname is '. perlstring($childname)

http://www.perladvent.org/2018/2018-12-04.html
December 5, 2018 at 8:56:39 AM EST *
perl advent
FILLER

Bless My Referents

QRCode

Object-oriented programming in Perl is easy. Forget the heavy theory and the sesquipedalian jargon: classes in Perl are just regular packages, objects are just variables, methods are just subroutines. The syntax and semantics are a little different from regular Perl, but the basic building blocks are completely familiar.

https://www.perl.com/pub/1999/09/refererents.html/
December 2, 2018 at 10:47:35 AM EST *
perl
FILLER

Setting up a Perl Development Environment with plenv - xdg.me

QRCode

This is a slightly modified copy of something I posted internally at work about setting up a development environment using plenv, which keeps your working Perl isolated from your system Perl. Many expert Perl developers already have some variation of this, but I’m posting it as a public service for people who’ve wanted this but never got around to it.

(I used to use perlbrew, but switched to plenv and haven’t looked back).

https://xdg.me/blog/setting-up-a-perl-development-environment-with-plenv/
November 6, 2018 at 9:04:20 AM EST *
perl
FILLER

Regex Tutorial - Lookahead and Lookbehind Zero-Length Assertions

QRCode

Lookahead and lookbehind, collectively called "lookaround", are zero-length assertions just like the start and end of line, and start and end of word anchors explained earlier in this tutorial. The difference is that lookaround actually matches characters, but then gives up the match, returning only the result: match or no match. That is why they are called "assertions". They do not consume characters in the string, but only assert whether a match is possible or not. Lookaround allows you to create regular expressions that are impossible to create without them, or that would get very longwinded without them.

https://www.regular-expressions.info/lookaround.html
October 29, 2018 at 11:10:39 AM EDT *
perl regex
FILLER

Getting started with Perl on Docker

QRCode
https://perlmaven.com/getting-started-with-perl-on-docker
September 5, 2018 at 3:56:45 PM EDT *
perl docker
FILLER

Deploying a Mojolicious Application using Hypnotoad and Apache

QRCode
https://perlmaven.com/deploying-a-mojolicious-application
September 2, 2018 at 8:57:27 PM EDT *
perl mojolicious
FILLER

Perl Advent Calendar 2017 - Mojolicious on the Command Line

QRCode

Mojolicious provides a utility class, ojo, that allows us to leverage the power of Mojolicious from the command line:

perl -Mojo -E 'say g("http://goo.gl/EsGk3b")->text'

The -M flag tells perl to load the following module, so -Mojo, despite looking like a super secret Mojo flag to perl actually is a cheeky way of saying use ojo.

ojo provides a whole host of single letter functions that are shortcuts to Mojolicious utilities, allowing you to quickly do things like fetching urls, reading and writing files, encoding and decoding json, manipulating data structures and a whole host more.

http://perladvent.org/2017/2017-12-15.html
August 1, 2018 at 9:47:04 AM EDT *
perl mojolicious
FILLER

Machine learning in Perl: Kyuubi goes to a (Model)Zoo during The Starry Night. | Sergey Kolychev [blogs.perl.org]

QRCode

Hello all, this is a fourth blog post in the Machine learning in Perl series, focusing on the AI::MXNet, a Perl interface to Apache MXNet, a modern and powerful machine learning library.

http://blogs.perl.org/users/sergey_kolychev/2018/07/machine-learning-in-perl-kyuubi-goes-to-a-modelzoo-during-the-starry-night.html
July 26, 2018 at 9:46:14 AM EDT *
perl neuralnetwork
FILLER

David Golden - "Taking Perl to Eleven with Higher-Order Functions"

QRCode

The Perl Conference 2018

Transformation helper function

Data::Fake

https://www.youtube.com/watch?v=USF4BHMFKbg&index=10&list=PLA9_Hq3zhoFx1inHPmwmbXrPcI8cc0fyO&t=0s
June 19, 2018 at 3:49:59 PM EDT *
perl video
FILLER

perldotcom/CONTRIBUTING.md at master · dnmfarrell/perldotcom · GitHub

QRCode

Interested in writing an article for Perl.com? Perhaps you want to get the word out about your new startup, provide a tutorial on your favorite module, or have community news to share. This document is for you.

https://github.com/dnmfarrell/perldotcom/blob/master/CONTRIBUTING.md
June 4, 2018 at 1:57:48 PM EDT *
hugo perl writing blog
FILLER

WWW::Mechanize Best Practices | i hack on things

QRCode

Recently at $work we were discussing some of the behaviours of WWW::Mechanize when submitting forms. For instance, when you pass the fields parameter to the submit_form() method, Mechanize might take a very lax approach to submitting your data. Imagine the following form:

http://www.olafalders.com/2018/04/13/wwwmechanize-best-practices/
April 16, 2018 at 11:17:08 AM EDT *
perl
FILLER
4 / 8
Shaarli · The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community · Documentation
Fold Fold all Expand Expand all Are you sure you want to delete this link? Are you sure you want to delete this tag? The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community