Question: Change CA to California.
Please Assist!!
while(my $inp = <DATA>) { my ($name,$ph,$addr,$date,$num) = split(/:/,$inp); my ($st,$city,$st_zip) = split(/,/,$addr); my ($n,$st,$zip) = split(/ /,$st_zip); if($st =~ /CA,/){ my $conv = s/CA,/California/; print "$st\n"; }}
Tommy Savage:408–724–0140: 12 2 2 Oxbow Court, Sunnyvale, CA 94087: 5/ +19/66: 34200 Lesle Kerstin: 408–456–123 4: 4 Harvard Square, Boston, MA 02133: 4/22/62: 52600 JonDeLoach: 408–253–3 122: 12 3 Park St. , San Jose, CA 94086: 7/25/53 +: 85100 Ephram Hardy:293–259–5395: 2 3 5 Carlton Lane, Joliet, IL 73858: 8/12/20: 56700 etty Boop: 245–836–83 57: 63 5 Cutesy Lane, Hollywood, CA 91464: 6/23/23: 14500 Wilhelm Kopf:846–836–2837 : 693 7 Ware Road, Milton, PA 93756: 9/21/46: 43500 Norma Corder:397–857 –2735: 74 Pine Street, Dearborn, MI 23874: 3/28/45: 245700 James Ikeda: 834–938–8376: 2 3 445 Aster Ave. , Allentown, NJ 83745: 12/1/38: 45000 Lori Gortz: 327–832–5728: 3 465 Mirlo Street, Peabody, MA 34756: 10/2/65: 35200 Barbara Kerz:385–573 –8326: 83 2 Ponce Drive, Gary, IN 83756: 12/15/46: 268500
In reply to regex CA to California by pinnacle
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |