texuser74 has asked for the wisdom of the Perl Monks concerning the following question:
Outputs:#!/usr/bin/perl use strict; use warnings; my $mycnt; while(<DATA>){ s!Number this.!++$mycnt.') Number this.'!ie; print; } __DATA__ Sample text. Number this. Number this. Sample text. Number this.
Is there any option in perl to change the counter to print alphabets, e.g. required output isSample text. 1) Number this. 2) Number this. Sample text. 3) Number this.
Thanks in advanceSample text. a) Number this. b) Number this. Sample text. c) Number this. ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: alpha counter
by ikegami (Patriarch) on Mar 25, 2010 at 05:42 UTC | |
by texuser74 (Monk) on Mar 25, 2010 at 05:47 UTC |