Defining a string/array with perl characters

Discussion in 'Perl Misc' started by Duke of Hazard, Sep 28, 2004.

  1. How can I define a string/array to that has these type of charcters in it:

    /\
    {}
    ()
    ;
    "

    I want perl to ignore these characters and treat them as standard text.

    For example:

    @print_javascript_validation = ' for (i = 0; i < s.length; i++)
    {
    // Check that current character isn't whitespace.
    var c = s.charAt(i);

    ' # end define @print_javascript_validation

    Thanks!
     
    Duke of Hazard, Sep 28, 2004
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?UmFqZXNoIHNvbmk=?=

    'System.String[]' from its string representation 'String[] Array'

    =?Utf-8?B?UmFqZXNoIHNvbmk=?=, May 4, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    1,972
    =?Utf-8?B?UmFqZXNoIHNvbmk=?=
    May 4, 2006
  2. johny smith
    Replies:
    8
    Views:
    680
    Peter Koch Larsen
    Jul 2, 2004
  3. Pawe³
    Replies:
    2
    Views:
    1,902
    Roman Ziak
    Jul 9, 2004
  4. Pawe³
    Replies:
    9
    Views:
    518
    Dan Pop
    Jul 13, 2004
  5. Spiro Trikaliotis

    Array initialization when defining the array

    Spiro Trikaliotis, Jun 8, 2007, in forum: C Programming
    Replies:
    5
    Views:
    435
    Spiro Trikaliotis
    Jun 9, 2007
  6. david.karr
    Replies:
    21
    Views:
    1,139
    Arne Vajhøj
    Mar 14, 2010
  7. Ken Fine
    Replies:
    2
    Views:
    315
    Ken Fine
    Feb 5, 2004
  8. Replies:
    6
    Views:
    172
    John W. Krahn
    Feb 28, 2006
Loading...