Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re^8: Binary to decimal conversion

by ikegami (Pope)
on Dec 11, 2007 at 19:09 UTC ( #656461=note: print w/ replies, xml ) Need Help??

in reply to Re^7: Binary to decimal conversion
in thread Binary to decimal conversion

Said code (and then some):

$\ = "\n"; print(my @a = reverse('hello')); # hello (order or scalars reversed) print(my $s = reverse('hello')); # olleh (order of chars reversed) print(reverse('hello')); # hello (order or scalars reversed) print(scalar(reverse('hello'))); # olleh (order of chars reversed) sub f(@) { return @_; } sub g($) { return @_; } print(f(reverse('hello')); # hello (order or scalars reversed) print(g(reverse('hello'))); # olleh (order of chars reversed)

Comment on Re^8: Binary to decimal conversion
Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (2)
As of 2015-11-28 21:19 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (745 votes), past polls