something strange, if i run my script like that :

$ /opt/local/bin/ruby myscript.rb

no prob

the shebang in my script is :

#!/usr/bin/env ruby -w

which ruby give me the above ruby (under /opt)

then, running this script as :

$ ./myscript.rb i get an error on line 8 :
./wav2xml.rb: line 8: syntax error near unexpected token `('
./wav2xml.rb: line 8: `  fxml=file.gsub(/(.*)\.wav/,'\1.xml')'

the major difference is upon the "-w" option within the shebang however,
if i delete this option i do have the same error.

sometimes an error given at one line comes from the preceeding one :
file=RGV[0]  # line 7

for me the syntax is correct ???
-- 
une bue