Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re: Re: (OT) Interview questions -- your response?

by demerphq (Chancellor)
on Sep 04, 2002 at 19:01 UTC ( #195164=note: print w/replies, xml ) Need Help??

in reply to Re: (OT) Interview questions -- your response?
in thread (OT) Interview questions -- your response?

If your going to use $_ anyway you might as well use the more efficient modifier form (no scope handling overhead).
@foo[$_-1,-$_] = @foo[-$_,$_-1] for (1..@foo/2);
BTW: I think this is probably the best implementation (starting at one instead of zero) of all that have been present along this line (especially including my embarrasing fencepost error version) so ++ to you.

Yves / DeMerphq
Software Engineering is Programming when you can't. -- E. W. Dijkstra (RIP)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (5)
As of 2019-06-17 21:13 GMT
Find Nodes?
    Voting Booth?
    Is there a future for codeless software?

    Results (80 votes). Check out past polls.

    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!