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/;
In reply to Re: splitting a word
by Parham
in thread splitting a word
by chriso
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |