On Mon, 29 Mar 2004 15:05:34 +0530
"MuthuKumar" <[EMAIL PROTECTED]> wrote:
> Hai all.
>
> I want to make a script which converts like (pErl1234test =
> perl).I
> wrote like
>
> #!/usr/bin/perl
> print "Enter ur name"
> $name =
> $org_name = $n
On Mar 29, 2004, at 3:35 AM, MuthuKumar wrote:
Hai all.
Howdy.
I want to make a script which converts like (pErl1234test =
perl).I
wrote like
#!/usr/bin/perl
print "Enter ur name"
$name =
$org_name = $name
You are missing semi-colons on all three lin
MuthuKumar wrote:
Hai all.
I want to make a script which converts like (pErl1234test = perl).I
wrote like
#!/usr/bin/perl
print "Enter ur name"
$name =
$org_name = $name
$name =~ s/\W.*//; #change 1
$name =~ tr/A-Z/a-z/; #change 2
MuthuKumar wrote:
Hai all.
I want to make a script which converts like (pErl1234test = perl).I
wrote like
#!/usr/bin/perl
print "Enter ur name"
$name =
$org_name = $name
$name =~ s/\W.*//; #change 1
$name =~ tr/A-Z/a-z/; #change 2
MuthuKumar wrote:
Hai all.
I want to make a script which converts like (pErl1234test = perl).I
wrote like
#!/usr/bin/perl
print "Enter ur name"
$name =
$org_name = $name
$name =~ s/\W.*//; #change 1
$name =~ tr/A-Z/a-z/; #change 2
Muthukumar wrote:
>
> Hai all.
Hello,
> I want to make a script which converts like (pErl1234test = perl).I
> wrote like
>
> #!/usr/bin/perl
> print "Enter ur name"
> $name =
> $org_name = $name
> $name =~ s/\W.*//; #change 1
The \W character class includes every character that is NOT a-
On Mon, 29 Mar 2004 12:14:49 -0600
James Edward Gray II <[EMAIL PROTECTED]> wrote:
> On Mar 29, 2004, at 11:02 AM, Smoot Carl-Mitchell wrote:
>
> > On Mon, 29 Mar 2004 15:05:34 +0530
> > "MuthuKumar" <[EMAIL PROTECTED]> wrote:
> >
> >> $name =~ s/\W.*//; #change 1
> >
> > This RE del
news <[EMAIL PROTECTED]> wrote:
:
: I want to make a script which converts like
: (pErl1234test = perl).I
: wrote like
:
: #!/usr/bin/perl
Always use the following two statements at the
beginning of your scripts. They will help catch errors.
use strict;
use warnings;
:
On Mar 29, MuthuKumar said:
>I want to make a script which converts like (pErl1234test = perl).I
>#!/usr/bin/perl
>print "Enter ur name"
>$name =
>$org_name = $name
Those three lines are all missing semicolons.
>$name =~ s/\W.*//; #change 1
On Mar 29, 2004, at 11:02 AM, Smoot Carl-Mitchell wrote:
On Mon, 29 Mar 2004 15:05:34 +0530
"MuthuKumar" <[EMAIL PROTECTED]> wrote:
$name =~ s/\W.*//; #change 1
This RE deletes zero or more non-alphanumeric characters followed by
anything.
So it deletes the entire string, since there
WC -Sx- Jones <[EMAIL PROTECTED]> wrote:
:
: MuthuKumar wrote:
: >
: > I want to make a script which converts
: > like (pErl1234test = perl). I wrote like
:
: #! /usr/bin/perl -w
:
: print "Enter ur name";
: my $name = ;
: my $org_name = $name;
: $org_name =~ s/[^a-z]/ /gi;
: $org_name
Charles K. Clarkson wrote:
WC -Sx- Jones <[EMAIL PROTECTED]> wrote:
:
: MuthuKumar wrote:
: print "Enter ur name";
Sorry, Sx. That produces this:
Org = perltest
As Entered = pErl1234test
The OP wanted:
Org = perl
As Entered = pErl1234test
Sure, but "Enter ur name"
To: "'MuthuKumar'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, March 29, 2004 6:09 PM
Subject: RE: string change problem
> news <[EMAIL PROTECTED]> wrote:
> :
> : I want to make a script which converts like
> : (pErl1234test = perl).I
Please bottom post.
> Hello All,
>
> I am really very happy to receive the detailful response
from you all.It is great.
> Thanks for all helping me to start my knowledge on PERL programming.
>
'perl' or 'Perl', never 'PERL'.
perldoc -q '"Perl"'
http://danconia.org
--
To unsubscr
14 matches
Mail list logo