From: John Feezell Date: 2002-12-10T14:29:24+09:00 Subject: Re: warnings -w From the "The Pragmatic Programmer's Guide" -w ' Enables verbose mode. Unlike -v, reads program from standard input if no program files are present on the command line. We recommend running your Ruby programs with -w. See other options at: http://www.rubycentral.com/book/rubyworld.html ==== 12/9/2002 11:14:00 PM, Daniel Carrera wrote: >Hello, > >I asked a while back what effect the '-w' flag had. > >I believe that, in response, I was told warned you about things like: > >if var = 3 # '=' instead of '==' > ... >end > >But Ruby warns you about that anyways. The man page says: > > -w enables verbose mode without printing version message > at the beginning. It set the `$VERBOSE' variable to > true. > >Is that all it does? It sets $VERBOSE to true? > >At first sight, Ruby seems to behave like it has the equivalent of Perl's >warnings by default. If that's the case, that's wornderful. I just want >to know if that is the case. > >Thanks for the help, > >Daniel Carrera >Graduate Teaching Assisant. Math Dept. >University of Maryland. (301) 405-5137 > > > >