Category: The Perl Programming Language
-
how can I read a file from last line to first line on the Unix command line?
https://stackoverflow.com/questions/48721344/how-can-i-read-a-file-from-last-line-to-first-line-in-shell https://www.man7.org/linux/man-pages/man1/tac.1.html – cat vs tac $ perl -e ‘print reverse <>’ Input_file There are also solutions in awk and sed – read the stackoverflow article for those solutions!
-
John Borwick: Perl one liners for daily use
http://www.johnborwick.com/2019/02/03/perl-one-liners.html
-
perl’s Text::CSV – on github – does not need compilation
https://github.com/makamaka/Text-CSV Sometimes I need its CSV.pm and CSV_PP.pm on my NAS-s in order to link them into some perl installation.
-
today I ran into the “Tie::Hash::NamedCapture” problem again, and I decided to resolve it properly
https://metacpan.org/pod/Tie::Hash::NamedCapture I started experiencing this problem a while ago, I guess with some new Perl release “creeping” in. So far I have “resolved” this problem by choosing an older Perl version hanging around. Today on cygwin I installed “perl-debuginfo” – this won’t solve the problem on my other platforms, but at least I finally have…
-
how do I encode UTF-8 characters into numeric character reference format (in Perl)?
https://stackoverflow.com/questions/4752353/how-do-i-encode-characters-into-numeric-character-reference-format-in-perl https://stackoverflow.com/a/4753600/3119172 $ echo ‘foobar’ | perl -pe “s/./ sprintf ‘&#x%04x;’, ord($&) /ge”
-
Perl’s DBD::Oracle vs Debian
https://metacpan.org/pod/DBD::Oracle https://metacpan.org/release/DBD-Oracle For accessing an Oracle DB server from a client computer (w/o its own Oracle DB server installation) you need “Oracle Instant Client” (a set of packages of installables for various computer architectures, supplied by Oracle for free): http://www.oracle.com/technetwork/database/database-technologies/instant-client/ You won’t find Oracle Instant Client for Debian (outside your organisation or company), but …:…
-
installing Perl’s resp. CPAN’s CryptX as Debian package
“Perl module that provides a self-contained crypto toolkit” https://metacpan.org/pod/CryptX — CryptX on CPAN https://tracker.debian.org/pkg/libcryptx-perl the “sid” AKA “unstable” AKA “bleeding edge” version is probably the one you are after download all 3 files mentioned there (source package) – actually (“in an ideal world“): dget the .dsc file, that will download all of them and check MD5…
-
xacobeo – graphical interface for running XPath queries
https://metacpan.org/release/Xacobeo https://metacpan.org/pod/distribution/Xacobeo/bin/xacobeo https://packages.debian.org/sid/perl/xacobeo