Results 1 to 4 of 4
  1. #1
    Join Date
    Sep 2004
    Posts
    9

    Unanswered: Alias for a word with $ symbol

    Hello,

    Is there a way to define a variable name for a word with $ symbol in it?
    For eg. sample_name = "sam$ple"

    Thanks
    Last edited by deltacorvi; 03-03-06 at 17:37.

  2. #2
    Join Date
    Jan 2006
    Posts
    32
    I assume you are saying you want to store the characters "sam$ple" in the variable sample_name.

    Do that with
    # sample_name="sam\$ple"

  3. #3
    Join Date
    Feb 2006
    Posts
    31
    OR

    you can use
    sample_name='sam$ple'

  4. #4
    Join Date
    Sep 2004
    Posts
    9
    Thanks! That worked.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •