http://www.perlmonks.org?node_id=174475


in reply to Re: (what are the evils of quoting lone scalars?) Re: Re: Should be simple, What don't I see?
in thread Should be simple, What don't I see?

I don't quite understand yours either ("is it a specific version if *question*?" what's that mean?).

Do you really consider my $email       = "$firstName" . "_" . "$lastName\@email.com"; quoting of a lone scalar?
( in my opinion, the '.' disqualifies it)

 
______crazyinsomniac_____________________________
Of all the things I've lost, I miss my mind the most.
perl -e "$q=$_;map({chr unpack qq;H*;,$_}split(q;;,q*H*));print;$q/$q;"

  • Comment on Re: Re: (what are the evils of quoting lone scalars?) Re: Re: Should be simple, What don't I see?
  • Download Code

Replies are listed 'Best First'.
Re: Re: Re: (what are the evils of quoting lone scalars?) Re: Re: Should be simple, What don't I see?
by runrig (Abbot) on Jun 14, 2002 at 23:22 UTC
    Do you really consider my $email = "$firstName" . "_" . "$lastName\@email.com"; quoting of a lone scalar?

    I think it is, especially when you could just as well do:

    my $email = "$firstName\_$lastName\@email.com"; or ............"${firstName}_$lastName\@email.com";

    runrig - who has been doing too much VBScripting lately and is really appreciating perl's string interpolation.