Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^5: Perl hex substraction

by Fox (Pilgrim)
on Feb 15, 2011 at 14:15 UTC ( [id://888249]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Perl hex substraction
in thread Perl hex substraction

FWIW, without storing the previous value:
$ perl -E 'my @a=1..5; for my $i(1..$#a) { say "$a[$i-1], $a[$i]" } ' 1, 2 2, 3 3, 4 4, 5

Replies are listed 'Best First'.
Re^6: Perl hex substraction
by raybies (Chaplain) on Feb 15, 2011 at 14:32 UTC
    Hrm.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2024-04-26 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found