#!/usr/bin/perl # http://perlmonks.org/?node_id=1193292 use strict; use warnings; while(<DATA>) { my $n = 1; s/(?<!\S)(?=\S)/ $n++ . ')' /ge; print; } __DATA__ RABBIT 45 -126.06686
In reply to Re: Pattern match and splitting of that
by tybalt89
in thread Pattern match and splitting of that
by Nansh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |