in reply to splitting a word
i think the syntax of:my $firstname = 'Parham'; #set first name $firstname =~ /^(\w)/; #grab the first letter print $1; #print the first letter
disregards the purpose of the $(number) variables which is why i stay away from them.my ($variable) = $variable =~ /regex/;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: splitting a word
by Hofmator (Curate) on Jan 16, 2002 at 17:43 UTC |