1.In a file how do I change the numeric values to word excluded the date format

example 11/12/2009 1 and 2 is done output 11/12/2009 one and two is done

I'll tried to look in the file for the each numeric appears and assign it but still also change the date format

2.How to capitalize the first letter of each word found after AU: marker

sample AU: mark bautista output should be AU: Mark Bautista
my $filename = "input.txt"; open my $file, '<', $filename; @fileinput=<$file>; close($file); foreach $line(@fileinput) { my $Cword=($line); if($Cword=s/(^AU:\s[a-z +]\s\[a-z])/(^AU:\s[A-Z]\s[A-Z])/g) { print $Cword; }

3. there's a date format Oct 27, 2011 change to YYYY/MM/DD output should be 2011/10/27 I having a problem how to change the month in numeric form first then change the format as YYYY/MM/DD.

foreach $line(@fileinput) {my $testdate=($line); if($testdate =~s/(\w{3})\s(\d{2})\,\s(\d{4})/$3\/$1\/$2/) { print $tes +tdate;
but still output the word "Oct" it must be '10' thanks

In reply to change number to word by allison

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.