Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Perl oddities

by Anonymous Monk
on Mar 02, 2005 at 13:09 UTC ( #435807=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        perl -wle 'print ("foo")'    # Warning
        perl -wle 'print ("foo");'   # No warning
        perl -wle 'print (")");'     # Warning
        perl -wle 'print ("\x29");'  # No warning
    
  2. or download this
    $ perl -wle 'print ("foo") . "bar"'
    print (...) interpreted as function at -e line 1.
    Useless use of concatenation (.) or string in void context at -e line 
    +1.
    foo
    $ perl -wle 'my $s = length ("foo") . "bar"'
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (12)
As of 2014-10-23 18:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (126 votes), past polls