In article <HFQTb.1317$_62.501 / read1.cgocable.net>,
tony summerfelt  <snowzone5 / hotmail.com> wrote:
>i seem to be having a problem with ARGV.
>
>something as simple as this:
>
>
>ARGV.each {|x| print "#{x}"}
>
>prints: %*
>
>regardless of how many arguments i use.
>
>what's the proper way of getting commandline arguments. i was hoping to
>keep the code down by not using getoptlong, but i'll use it if necessary

Is that your entire code?

[mike@ratdog tmp]$ cat try.rb     
#!/usr/bin/env ruby

ARGV.each {|x| puts "#{x}"}
[mike@ratdog tmp]$ ./try.rb foo bar baz
foo
bar
baz
[mike@ratdog tmp]$

Mike
-- 
mike / stok.co.uk                    |           The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/       | GPG PGP Key      1024D/059913DA 
mike / exegenix.com                  | Fingerprint      0570 71CD 6790 7C28 3D60
http://www.exegenix.com/           |                  75D2 9EC4 C1C0 0599 13DA