Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Name "main::a" used only once: possible typo

by szabgab (Priest)
on Mar 05, 2013 at 18:24 UTC ( [id://1021888]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    
    use List::Util qw/reduce/;
    print reduce { $a * $b } 1..6;
    
  2. or download this
    Name "main::a" used only once: possible typo at x.pl line 6.
    Name "main::b" used only once: possible typo at x.pl line 6.
    
  3. or download this
    use strict;
    use warnings;
    
    print sort {$a <=> $b } 1..6;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-09-11 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (15 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.