Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 avoiding work at the Monastery: (10)
As of 2015-07-03 10:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (51 votes), past polls