perl-Acme-InputRecordSeparatorIsRegexp - Actually, awk doesn't have to be

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Acme-InputRecordSeparatorIsRegexp
Package version 0.03
Package release alt1
Package architecture noarch
Package type rpm
Installed size 19.98 KB
Download size 19.98 KB
Official Mirror
In the section about the "input record separator",
`perlvar' famously notes
=over 4
Remember: the value of $/ is a string, not a regex. awk
has to be better for something. :-)
This module provides a mechanism to read records from a file
using a regular expression as a record separator.
A common use case for this module is to read a text file
that you don't know whether it uses Unix (`\n'),
Windows/DOS (`\r\n'), or Mac (`\r') style line-endings,
or even if it might contain all three. To properly parse
this file, you could tie its filehandle to this package with
the appropriate regular expression:
my $fh = Symbol::gensym;
tie *$fh, 'Acme::InputRecordSeparatorIsRegexp', '\r\n|\r|\n';
open $fh, '<', 'file-with-ambiguous-line-endings';
@lines = <$fh>;
while (my $line = <$fh>) { ... }
The lines produced by the `<$fh>' expression, like the
builtin `readline' function and operator, include the record
separator at the end of the line, so the lines returned may end
in `\r\n', `\r', or `\n'.
Other use cases are files that contain multiple types of records
where a different sequence of characters is used to denote the
end of different types of records.


Package Version Architecture Repository
perl-Acme-InputRecordSeparatorIsRegexp - - -


Name Value
/usr/share/perl5 -
perl( -
rpmlib(PayloadIsLzma) -


Name Value
perl(Acme/ = 0.030
perl-Acme-InputRecordSeparatorIsRegexp = 0.03-alt1


Type URL
Binary Package perl-Acme-InputRecordSeparatorIsRegexp-0.03-alt1.noarch.rpm
Source Package perl-Acme-InputRecordSeparatorIsRegexp-0.03-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Acme-InputRecordSeparatorIsRegexp rpm package:
    # sudo apt-get install perl-Acme-InputRecordSeparatorIsRegexp



See Also

Package Description
perl-Acme-Intraweb-1.01-alt1.noarch.rpm perl module Acme-Intraweb
perl-Acme-Iota-0.01-alt1.noarch.rpm Iota Is Acme
perl-Acme-IsItJSON-0.02-alt1.noarch.rpm Is my variable JSON or a Perl data structure?
perl-Acme-JANEZHANG-0.01-alt1.noarch.rpm The great new Acme::JANEZHANG!
perl-Acme-JAPH-0.03-alt1.noarch.rpm perl module Acme-JAPH
perl-Acme-JJCARMAN-0.03-alt1.noarch.rpm The great new Acme::JJCARMAN!
perl-Acme-JMOLLY-Utils-0.02-alt1.1.noarch.rpm The great new Acme::JMOLLY::Utils!
perl-Acme-JWT-0.04-alt1.noarch.rpm JWT utilities
perl-Acme-JavaTrace-0.08-alt1.noarch.rpm Module for using Java-like stack traces
perl-Acme-Jrush-0.04-alt1.noarch.rpm The great new Acme::Jrush!
perl-Acme-KJAM-0.03-alt1.noarch.rpm The great new Acme::KJAM!
perl-Acme-KMX-Test-0.013-alt1.noarch.rpm Testing package
perl-Acme-Kensiro-0.16-alt1.noarch.rpm kensiro-sinsu
perl-Acme-Keyakizaka46-0.0.1-alt1.noarch.rpm All about Japanse idol group "Keyakizaka46"
perl-Acme-KeyboardMarathon-1.25-alt1.noarch.rpm How far have your fingers ran?