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

Sometimes it's in Void Context

by Ovid (Cardinal)
on May 31, 2002 at 22:43 UTC ( [id://170848]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    $lines[0] = [ qw/ dog cat bird / ];
    print $lines[0][0,1,2];
    
  2. or download this
    #!/usr/bin/perl -w
    $lines[0] = [ qw/ dog cat bird / ];
    print $lines[0][0,2,2];
    
  3. or download this
    Useless use of a constant in void context at C:\test.pl line 3.
    bird
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://170848]
Approved by boo_radley
Front-paged by boo_radley
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-04-16 19:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found