Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Use of single quotes versus double quotes

by grinder (Bishop)
on Dec 08, 2006 at 19:06 UTC ( [id://588673]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    % perl -MO=Concise -e 'print qq{hello, world}'
    6  <@> leave[1 ref] vKP/REFC ->(end)
    ...
    5     <@> print vK ->6
    3        <0> pushmark s ->4
    4        <$> const(PV "hello, world") s ->5
    
  2. or download this
    % perl -MO=Concise -e 'print q{hello, world}'
    6  <@> leave[1 ref] vKP/REFC ->(end)
    1     <0> enter ->2
    ...
    3        <0> pushmark s ->4
    4        <$> const(PV "hello, world") s ->5
    -e syntax OK
    
  3. or download this
    % perl -MO=Concise -e 'print qq{hello, $world\n}'
    a  <@> leave[1 ref] vKP/REFC ->(end)
    ...
    5                    <$> gvsv(*world) s ->6
    7              <$> const(PV "\n") s ->8
    -e syntax OK
    
  4. or download this
    % perl -MO=Concise -e 'print qq{hello, } . $world . qq{\n}'
    a  <@> leave[1 ref] vKP/REFC ->(end)
    ...
    5                 <$> gvsv(*world) s ->6
    7           <$> const(PV "\n") s ->8
    -e syntax OK
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (1)
As of 2024-04-25 01:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found