On Nov 19, Nandita Shenvi said:
>I have variable $e-mail the value of the var is an e-mail address, now I
>would like to to store the value of the variable under another name for
>example email_id001 or email_id$i, where $i is just a interger.
No. You do not want $email1, $email2, $email3, $ema
Hi Nandita
I think you just want to concat no.s to ids
probably this may help
$em = "nandita\@yahoo.com" ; ## " \ " to remove spcl meaning of @
$i = "001";
$emid = $em.$i;
or##
$emid1 = "$em$i";
print " $emid or $emid1 ";
- Original Message -
From: "Nandita Shenvi" <[E
Hi -
1) Variable names consist of a type ($ @ % ...) followed by
[a-zA-Z0-9_] so your variable $e-mail is an invalid name
(perl would read this as $e - mail and choke. It should be
my $e_mail;
(but this was prob only your typo).
2) assign the value to move it to another variable: