string change problem
From: Muthukumar (ramana_muthu_at_yahoo.co.in)
Date: 03/29/04
- Next message: Smoot Carl-Mitchell: "Re: string change problem"
- Previous message: John: "Sending email a HTML page"
- Next in thread: Smoot Carl-Mitchell: "Re: string change problem"
- Reply: Smoot Carl-Mitchell: "Re: string change problem"
- Reply: James Edward Gray II: "Re: string change problem"
- Reply: Flemming Greve Skovengaard: "Re: string change problem"
- Reply: Wc -Sx- Jones: "Re: string change problem"
- Reply: Randy W. Sims: "Re: string change problem"
- Reply: John W. Krahn: "Re: string change problem"
- Maybe reply: Smoot Carl-Mitchell: "Re: string change problem"
- Reply: Charles K. Clarkson: "RE: string change problem"
- Reply: Jeff 'Japhy' Pinyan: "Re: string change problem"
- Maybe reply: Wiggins D Anconia: "Re: string change problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: beginners@perl.org Date: Mon, 29 Mar 2004 15:05:34 +0530
Hai all.
I want to make a script which converts like (pErl1234test = perl).I
wrote like
#!/usr/bin/perl
print "Enter ur name"
$name = <STDIN>
$org_name = $name
$name =~ s/\W.*//; #change 1
$name =~ tr/A-Z/a-z/; #change 2
print "Old = $org_name\n";
print "New = $name\n";
But i can not get a change on the change 1 and 2 lines.
Regards,
Muthukumar.
- Next message: Smoot Carl-Mitchell: "Re: string change problem"
- Previous message: John: "Sending email a HTML page"
- Next in thread: Smoot Carl-Mitchell: "Re: string change problem"
- Reply: Smoot Carl-Mitchell: "Re: string change problem"
- Reply: James Edward Gray II: "Re: string change problem"
- Reply: Flemming Greve Skovengaard: "Re: string change problem"
- Reply: Wc -Sx- Jones: "Re: string change problem"
- Reply: Randy W. Sims: "Re: string change problem"
- Reply: John W. Krahn: "Re: string change problem"
- Maybe reply: Smoot Carl-Mitchell: "Re: string change problem"
- Reply: Charles K. Clarkson: "RE: string change problem"
- Reply: Jeff 'Japhy' Pinyan: "Re: string change problem"
- Maybe reply: Wiggins D Anconia: "Re: string change problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]