A r t i c l e s
Navigation

Note: This Wiki is
outdated, personal views
may have changed.
L505 A.I. bot is dead
long live THX 1138

M a i n P a g e

D i r e c t o r y

Paramstr vs Ruby ARGV


Modern pascal uses paramstr(1) paramstr(2) etc. to grab command line arguments.

In ruby, ARGV has similar functionality.

  def dumpargs
    ARGV.each do |arg|
      puts arg
    end
  end

  dumpargs
Or access this way
  puts ARGV[0]
  puts ARGV[1]
  puts ARGV[2] 
  # etc.

No complaints really. Pretty much the same as ParamStr() with slightly different syntax.

About
Note: This Wiki is outdated, personal views may have changed.

This wiki contains info on life, health, humans, nature, programming, database, fads, paradigms, poems, principles, theories.

Articles may contain statements which some may find helpful and encouraging, or even discouraging.

Beware, I believe in the Grand Justice system.
_ _ _