From: tad.bochan@... Date: 2004-08-31T20:03:16+09:00 Subject: I'm confused about $LOAD_PATH Hi, I'm confused about how to update this $: variable in a ruby program. In the Ruby book PPG (page 218 in my book) it says that this variable is read-only , but in the same sentence, it says "This variable can be set from within a program to alter the default search path; typically programs use $: << dir to append dir to the path. [r/o]" The book says in several places that you can update this variable at runtime, BUT, when I try $LOAD_PATH = $LOAD_PATH << "mydir" or $LOAD_PATH = $LOAD_PATH.unshift "mydir" I get, "$LOAD_PATH is a read-only variable (NameError)" Regards, Tad This message and any attachments (the "message") is intended solely for the addressees and is confidential. If you receive this message in error, please delete it and immediately notify the sender. Any use not in accord with its purpose, any dissemination or disclosure, either whole or partial, is prohibited except formal approval. The internet can not guarantee the integrity of this message. BNP PARIBAS (and its subsidiaries) shall (will) not therefore be liable for the message if modified. --------------------------------------------- Ce message et toutes les pieces jointes (ci-apres le "message") sont etablis a l'intention exclusive de ses destinataires et sont confidentiels. Si vous recevez ce message par erreur, merci de le detruire et d'en avertir immediatement l'expediteur. Toute utilisation de ce message non conforme a sa destination, toute diffusion ou toute publication, totale ou partielle, est interdite, sauf autorisation expresse. L'internet ne permettant pas d'assurer l'integrite de ce message, BNP PARIBAS (et ses filiales) decline(nt) toute responsabilite au titre de ce message, dans l'hypothese ou il aurait ete modifie.