the help doesnt have much on the shift command….it explains the use, but not really how to use it.
anyone know the syntax?
shift and args
3489 4 1- lynch_ppl
- Member
- 176 posts
- Joined: July 2005
- Offline
- Antoine Durr
- Member
- 321 posts
- Joined: July 2005
- Offline
- Le_monkey_butt
- Member
- 166 posts
- Joined: Feb. 2006
- Offline
- lynch_ppl
- Member
- 176 posts
- Joined: July 2005
- Offline
- Antoine Durr
- Member
- 321 posts
- Joined: July 2005
- Offline
lynch_ppl
thanks….
i guess the syntax for that one is as simple as Antoine said….shift
Yep. What's missing from the implementation is the “shifting” of an arbitrary variable name, e.g.
shift foobar
which would let you have word lists that you could reduce one arg at a time. For that matter, it would be cleaner to match Perl's operators, shift, unshift, push, pop, and splice. But oh well…
– Antoine
-
- Quick Links