Commit Graph

7 Commits (c5172dfe6716225a1803dda7c3e41d30edab8730)

Author SHA1 Message Date
pxgamer f2a8784dde perl: add link to homepage 2019-05-31 19:47:40 +01:00
Waldir Pimenta efbf0cc51e perl: tweak the -0 example 2017-05-22 19:47:03 +05:30
Waldir Pimenta dc9547925f perl: swap -M example with -0, for multiline regex
For completeness: the -0 option is actually used to specify the input record separator (as an octal number).
Without it, the record separator is the newline character, i.e. the files are processed line by line
(which doesn't allow find-replace expressions that include newlines to work).

According to the [documentation](http://perldoc.perl.org/perlrun.html#Command-Switches),
using plain `-0` is not guaranteed to have the effect of parsing the entire file,
because if the file does contain characters with octal value equal to the parameter passed to (or implied by) the -0 option,
these characters will be treated as line breaks.
However, if the value exceeds 377<sub>8</sub> (i.e. 255), it won't be matched to characters on the file.
777 is the preferred convention within that exceptional range, as the highest value that keeps to 3 octal digits.

Here we're forgoing such details and using -0 anyway, since for most cases this will be enough.
2017-05-22 19:47:03 +05:30
Waldir Pimenta c3146ede2a perl: improve descriptions of -pie examples 2017-04-26 10:32:58 +01:00
morrme 8b85207f35 perl: add pie example per issue #1239 2017-04-26 10:32:58 +01:00
Waldir Pimenta 1524aa95da perl: various minor tweaks
- use generic names in the descriptions, since they can be directly matched to the corresponding tokens
- move the -e example to appear right before the -M -e example
- make description of -M -e example more explicit (to match the plain -e example)
2016-11-05 19:17:40 +00:00
Assem Attia b9bb46e6de perl: add page (#1142) 2016-11-05 19:14:19 +00:00