Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

A somewhat unexpected side effect...

by blazar (Canon)
on Nov 21, 2006 at 11:40 UTC ( [id://585235]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    print "num:$num let:$let\n";
    
    __END__
    
  2. or download this
    num:aa let:aa
    
  3. or download this
    Argument "z" isn't numeric in addition (+) at C:\temp\foo.pl line 9.
    
  4. or download this
    C:\temp>perl -le "$a='z';print++$a"
    aa
    
    C:\temp>perl -le "$a='9';print++$a"
    10
    
  5. or download this
    C:\temp>perl -MO=Concise -e "$a='z'" >z
    -e syntax OK
    ...
    < 3        <$> const[PV "z"] s ->4
    ---
    > 3        <$> const[PV "9"] s ->4
    
  6. or download this
    C:\temp>perl -le "$a='foo9';print++$a"
    fop0
    
    C:\temp>perl -le "$a='9bar';print++$a"
    10
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2024-04-23 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found