The Research Lab

Science and Technology Blog

  • Home
  • About

Category: Perl Programming

Shell escaping in Perl

March 28, 2014January 2, 2020 Arnon WeinbergPerl Programming5 Comments on Shell escaping in Perl

Shell Escaping: There are several methods for escaping special characters in the Linux shell: Double quotes: Double-quoted strings require escaping of only a few characters.  Example: >echo “Some String: &>|\”\$’\`\s\\” Some String: &>|”$’`\s\ This method is useful as long as…

Read More→

utf8::decode() may actually unset the UTF-8 flag

November 23, 2012November 23, 2012 Arnon WeinbergPerl ProgrammingLeave a Comment on utf8::decode() may actually unset the UTF-8 flag

According to the documentation, the utf8::decode() function should generally set/turn on the UTF-8 flag for a string that contains multi-byte characters.  However, apparently, there are circumstances under which utf8::decode() may not only not set the flag, but may actually unset/clear/turn…

Read More→

Perl: Default to UTF-8 encoding

June 20, 2012November 4, 2015 Arnon WeinbergPerl ProgrammingLeave a Comment on Perl: Default to UTF-8 encoding

The UTF-8 (Unicode) character encoding system is a well supported alternative to the older ISO-8859-1 (Latin-1) system that can make it easier to work with special characters and multiple languages.  Many developers can exercise sufficient control over their system to…

Read More→

Perl access to local install of the W3C CSS validator

June 19, 2012April 8, 2016 Arnon WeinbergPerl ProgrammingLeave a Comment on Perl access to local install of the W3C CSS validator

The W3C CSS validator is an online service for checking a stylesheet for standards compliance.  This service can be accessed in Perl via the WebService::Validator::CSS::W3C module, which is handy for automating validation.  However, for checking a large number of stylesheets, it is…

Read More→

Perl global error handler

December 25, 2010February 12, 2011 Arnon WeinbergPerl ProgrammingLeave a Comment on Perl global error handler

This is in an Apache::ASP based system, but should theoretically work in any web environment. I wanted to create a global default error handler ($SIG{__DIE__}) that displays the error text on the page. Some notes: It is generally recommended that…

Read More→

Perl regular expressions – limit

October 18, 2010October 18, 2010 Arnon WeinbergPerl ProgrammingLeave a Comment on Perl regular expressions – limit

Just ran into a limitation of Perl regular expressions. It’s mentioned (in brackets!) here: http://www.foo.be/docs/tpj/issues/vol1_2/tpj0102-0006.html, but I didn’t see mention of it in the Perl manual, so this wasn’t easy to track down. It’s stated as: “Perl currently has an…

Read More→

Categories

  • Science (7)
  • Technology (24)
    • jQuery Programming (1)
    • Linux Desktop (7)
    • Linux Server (7)
    • Machine Learning (4)
    • Perl Programming (6)
  • Uncategorized (3)

Recent Posts

  • Toronto in 1893 – annotated interactive map
  • Using AI for Literature Review
  • Upscale video super-resolution using RSTT
  • Using FFmpeg to replace video frames
  • FFmpeg lossless filtering
  • The Age of COVID (update)
  • The Zombies
  • The Age of COVID
  • Upscale and interpolate video super-resolution using STARnet
  • Optimal Finances
  • Upscale video super-resolution using RBPN
  • Were early travel bans effective against the spread of Covid-19?
  • GNOME session save and restore
  • Thunderbird: Highlight row on focus
  • https and the browser conspiracy
  • The Introspection Illusion
  • HTTP DDoS: “Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)”
  • Shell escaping in Perl
  • GNOME session save and restore
  • Prevent GNOME screensaver during full-screen Flash videos
  • utf8::decode() may actually unset the UTF-8 flag
  • Virtualmin + SFTP + chroot
  • Perl: Default to UTF-8 encoding
  • Perl access to local install of the W3C CSS validator
  • How to have a Logical Argument in Real Life
  • jQuery Scrolling Anchors
  • Practical Logic and Decision Making in Real Life
  • Linux memory leak detection
  • Compiling programs in Fedora
  • Perl global error handler
  • Dual-monitor + TV
  • Nautilus open-with / mime-type associations
  • Perl regular expressions – limit
  • Customizing the GNOME Shell menu

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Blog Kit by WP Charms