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. Advertising

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. johny smith
    Replies:
    8
    Views:
    392
    Peter Koch Larsen
    Jul 2, 2004
  2. Xah Lee
    Replies:
    5
    Views:
    282
    Tad McClellan
    Jan 18, 2005
  3. Spiro Trikaliotis

    Array initialization when defining the array

    Spiro Trikaliotis, Jun 8, 2007, in forum: C Programming
    Replies:
    5
    Views:
    312
    Spiro Trikaliotis
    Jun 9, 2007
  4. david.karr
    Replies:
    21
    Views:
    867
    Arne Vajhøj
    Mar 14, 2010
  5. Ken Fine
    Replies:
    2
    Views:
    180
    Ken Fine
    Feb 5, 2004
Loading...

Share This Page