Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^2: a perl code syntax help

by tobyink (Canon)
on Jul 28, 2014 at 11:25 UTC ( [id://1095334]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    print <<"END" for 1..100;
    @{[$_%3?():"Fizz",$_%5?():"Buzz",$_%5&&$_%3?$_:()]}
    END
    
  2. or download this
    use strict;
    use warnings;
    ...
    print <<"END" for 1..100;
    @{[  ($_ % 2) ? 'Odd' : 'Even'  ]}
    END
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1095334]
help
Chatterbox?
and the web crawler heard nothing...

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

    No recent polls found