On Jan 24, Naveen Parmar said: >Why are the following 2 invalid scalar assignments? > >B. $17april = $dayDay 2; >C. $april.17 = $dayDay 2;
I'm not sure what it is you're trying to do here at all. $17april is an invalid variable name, because: a) if a variable name starts with digits, it must contain ONLY digits b) and you can't assign to variables that start with digits $april.17 is an invalid variable name, because '.' is not valid in a variable name. $april.17 is the concatenation of the value of the $april variable with the number 17. You can't assign to this new text value. $dayDay 2 is not valid Perl. What is the 2 doing there drifting? -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ ** Look for "Regular Expressions in Perl" published by Manning, in 2002 ** <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]