Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Perl oddities

by Anonymous Monk
on Mar 02, 2005 at 13:09 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://435807]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2024-03-28 10:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found