It works for me...

[ensemble] ~/p/ruby $ ruby -e 'ARGV.each {|x| print "#{x}\n"}' aa bb cc
aa
bb
cc

Can you give an example, or more context?

Cheers,
Sam

Quoteing snowzone5 / hotmail.com, on Wed, Feb 04, 2004 at 02:25:12AM +0900:
> 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
> 
> -- 
> http://home.cogeco.ca/~tsummerfelt1
>