Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re^3: numbers in parentheses not considered numeric values??

by Anonymous Monk
on Aug 07, 2015 at 23:10 UTC ( [id://1137891]=note: print w/replies, xml ) Need Help??


in reply to Re^2: numbers in parentheses not considered numeric values??
in thread numbers in parentheses not considered numeric values??

In the code itself, see example below:

#!/usr/bin/perl -l # http://perlmonks.org/?node_id=1137878 use strict; use warnings; $| = 1; while(<DATA>) { my @value = split; tr/()//d for @value; # THE FIX print $value[1] - $value[0]; } __DATA__ (15) 20 (3) 50

Log In?
Username:
Password:

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

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

    No recent polls found