Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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

by crazyinsomniac (Prior)
on Jun 14, 2002 at 12:34 UTC ( #174475=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://174475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2019-05-22 12:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (140 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!