#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    I've been using Perl for some time now, and never got around this one. Can anyone tell me the basic difference between these functions??
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Fairbanks, AK USA
    Posts
    2
    Rep Power
    0
    q// is generally the same thing as using single quotes - meaning it doesn't interpolate values inside the delimiters.
    qq// is the same as double quoting a string. It interpolates.
    qw// return a list of white space delimited words. @q = qw/this is a test/ is functionally the same as @q = ('this', 'is', 'a', 'test')
    qx// is the same thing as using the backtick operators.
    I've never used qr//, but it's got something to do with compiling regex's for later use.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jun 2000
    Posts
    300
    Rep Power
    15
    Thanks a lot, that really clears things up. Thanks again...

IMN logo majestic logo threadwatch logo seochat tools logo