From: Josef 'Jupp' Schugt Date: 2003-04-30T21:15:43+09:00 Subject: Re: ugly style variables Saluton! * saggmannen ; 2003-04-30, 11:52 UTC: > I'm new to ruby, and thus far I mostly like what I've seen. But > these $_, $&, and the other, ugly style variables that ruby > inherited from Perl. Let's say I'm not in love with them. Is there > an alternative way to obtain the same functionality, but in a more > verbose and intuitive way? require 'English" is equivalent to: alias $ERROR_INFO $! alias $ERROR_POSITION $@ alias $LOADED_FEATURES $" alias $FS $; alias $FIELD_SEPARATOR $; alias $OFS $, alias $OUTPUT_FIELD_SEPARATOR $, alias $RS $/ alias $INPUT_RECORD_SEPARATOR $/ alias $ORS $\ alias $OUTPUT_RECORD_SEPARATOR $\ alias $INPUT_LINE_NUMBER $. alias $NR $. alias $LAST_READ_LINE $_ alias $DEFAULT_OUTPUT $> alias $DEFAULT_INPUT $< alias $PID $$ alias $PROCESS_ID $$ alias $CHILD_STATUS $? alias $LAST_MATCH_INFO $~ alias $IGNORECASE $= alias $PROGRAM_NAME $0 alias $ARGV $* alias $MATCH $& alias $PREMATCH $` alias $POSTMATCH $' alias $LAST_PAREN_MATCH $+ Gis, Josef 'Jupp' Schugt -- | /""""\ e-mails that do not contain plain text, are larger than | | / STOP \ 50 KiB, are unsolicited, or contain binarys are ignored | | \ SPAM / unless payment from your side or technical reasons give | | \____/ rise to a non-standard treatment. ______________________|