Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Logical Not not working!!!

by Generoso (Parson)
on Aug 20, 2010 at 22:12 UTC ( #856378=note: print w/ replies, xml ) Need Help??


in reply to Logical Not not working!!!

This is working for me it does not use Boolean values.

#!/usr/bin/perl # use strict; use warnings; while (<DATA>) { print; chomp; foreach (split /,/){print $_ ? "0," : "1,";} print "\n"; } __DATA__ 0,1,1 1,1,0 0,1,0 1,0,0 1,1,1


Comment on Re: Logical Not not working!!!
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2015-07-05 14:01 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 (67 votes), past polls