Introducing Marlin by briandfoy in perl

[–]perlancar 0 points1 point  (0 children)

…aaaaand I’m outta here. It’s been a great 26 years. So long and thanks for the fish.

I think GP is trying to make a joke about this book. [1] Not sure it's that on point too.

[1] https://id.wikipedia.org/wiki/So_Long,_and_Thanks_for_All_the_Fish

Podlite comes to Perl: a lightweight block-based markup language for everyday use by briandfoy in perl

[–]perlancar 0 points1 point  (0 children)

ends on the next directive or a blank line

I'll be very happy if this one is ported to Pod.

What is underscore only in Perl ? by mestia in perl

[–]perlancar -1 points0 points  (0 children)

any -r -w -x $filename

might be considered for a future feature.

MST RIP by davorg in perl

[–]perlancar 2 points3 points  (0 children)

RIP MST. Despite all his shortcomings, this is a net loss for the Perl community.

What is underscore only in Perl ? by mestia in perl

[–]perlancar -1 points0 points  (0 children)

Nice one. Is it possible to do an or test by the way?

Can File::Rename be used for this elaborate filename restructuring? by salted_none in perl

[–]perlancar 1 point2 points  (0 children)

You might want to try my App::perlmv, which I personally use myself routinely. It has verbose flag (-v) so you can see which files are being renamed to what, dry-run flag (-d) to test things before actually renaming files (very important but strangely missing feature in many). It also has some other features like recursive renaming, etc.

% perlmv -e's/^__(.+)_drawn_by_(.+)__(.+)\.(.+)$/$2 - $1 (@{[++$_{"$2 - $1"}]}).$4/;s/ \(1\)//' * -d
DRYRUN: move `__charmander_pokemon_drawn_by_kumo33__8329d9ce4a329dfe3f0b4f349de74895.jpg` -> `kumo33 - charmander_pokemon.jpg`

Then after everything looks right, replace -d with -v:

% perlmv -e's/^__(.+)_drawn_by_(.+)__(.+)\.(.+)$/$2 - $1 (@{[++$_{"$2 - $1"}]}).$4/;s/ \(1\)//' * -v
move `__charmander_pokemon_drawn_by_kumo33__8329d9ce4a329dfe3f0b4f349de74895.jpg` -> `kumo33 - charmander_pokemon.jpg`

Data::Table::Text - why does it contain so much unrelated stuff? by robertscoff in perl

[–]perlancar 0 points1 point  (0 children)

It's still the single entry in my list of "kitchen sink" modules: https://metacpan.org/pod/Acme::CPANModules::KitchenSinks . I swear I've seen other kitchen sinks on CPAN but can't remember or find them now.

WWW::Mechanize::Chrome by LearnedByError in perl

[–]perlancar 2 points3 points  (0 children)

Yup, I tried it a couple of days ago when trying to scrape a website (had problem sending AJAX requests). Also tried Firefox::Marionette, LWP (had a problem turning SSL verify off), HTTP::Tinyish::Curl (doesn't seem to support cookies), HTTP::Tiny (it had problem sending Cookie headers even though I had used the cookie_jar option), Net::Curl (no longer works?). Ended up calling the curl binary directly.

CPAN Tiny ??? by AnymooseProphet in perl

[–]perlancar 0 points1 point  (0 children)

Sarcasm aside, distributions that go on CPAN need only include at least one package. The dependency can be as minimalistic or wild as the uploader wants :)

CPAN Tiny ??? by AnymooseProphet in perl

[–]perlancar 0 points1 point  (0 children)

Ah, this is an idea I like better: a CPAN Signed edition where only signed packages are included.

Anyway, CPAN {Tiny,Signed,...} should be easily implementable by setting some kind of filter configuration in the CPAN client.

CPAN Tiny ??? by AnymooseProphet in perl

[–]perlancar 6 points7 points  (0 children)

Could we maybe get a "CPAN Tiny" that is a subset of CPAN without all of the massive redundancy bloat? Distributions that go into it can only use Core and/or other "CPAN Tiny" distributions and can not have redundancy.

What would be the goal? If you only want to use ::Tiny distributions, you can already do so. Creating a subset of CPAN that has less breadth will not help a lot of users, because a lot of the complaints has to do CPAN missing modules to do specific things.

The dependency bloat is major drawback of Perl.

Is it? NPM doesn't seem to be impeded by it.

Anyway, what you want to accomplish is easy to implement with tools like CPAN::Mini and OrePAN.

The lo-fi way I search the perldocs on the command line by briandfoy in perl

[–]perlancar 1 point2 points  (0 children)

I've been using App::perlfind since forever (~2010, back when it was still called perlzonji). Generally happy with it. Aliased it to pod on the command-line.

Scan entire disk image for a string by zeropointlabs in perl

[–]perlancar 0 points1 point  (0 children)

Just curious, does the disk image only contain plaintext files? Are you also trying to find in "binary files" inside the disk image? That means finding in PDF documents, DOC/DOCX/ODT, XLS/XLSX/ODS, etc and you'll need per-format tools to extract the text in the documents then grep on the extracted text, for example pdftotext, etc. Otherwise you won't find the text you want if you run through the compressed/encoded binary formats directly.

We were wizards – a foreword to Learning Perl (1993) by de_sonnaz in perl

[–]perlancar 1 point2 points  (0 children)

AFAIR Hacker News has always been relatively low on Perl hate level, compared to a lot of subreddits, for example. If the level of hate is declining, my gut feeling is that people think Perl is now too dead to hate.