Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://174475]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (7)
As of 2024-04-16 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found