Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^4: print +split

by drock (Beadle)
on Mar 13, 2005 at 19:35 UTC ( #439138=note: print w/ replies, xml ) Need Help??


in reply to Re^3: print +split
in thread print +split

Chas.... I understand now... my bad. Anyway it is printing the two elements of not computing the difference.

root@stkv440-srvA [ / ]-> perl /usr/local/bin/ohiohealth/filecp_chk.OH +.pl 64696 64684 Difference is: 64696 - 64684
I got it... I was a matter interpolation in my print statement. THANK YOU CHAS!!!! : ) Have a nice week!


Comment on Re^4: print +split
Download Code
Re^5: print +split
by chas (Priest) on Mar 13, 2005 at 20:56 UTC
    You 're welcome!
    I didn't see your print statement, but I'm sure I know what you mean. *Actually, you can imbed function calls within strings, although it isn't necessary here.* Look at:
    $diff[1]=62622; $diff[2]=62535; print $diff[1]-$diff[2],"\n"; print "$diff[1]-$diff[2]\n"; print "@{[$diff[1]-$diff[2]]}\n";
    chas

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (17)
As of 2015-07-02 17:36 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 (44 votes), past polls