Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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 meditating upon the Monastery: (6)
As of 2014-09-24 01:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (243 votes), past polls