How to create a regexp reference

Discussion in 'Perl Misc' started by Martin Kissner, Feb 1, 2006.

  1. hello together,

    how do I create a regexp reference?
    I checked perldoc perlref and perldoc -q 'reference' but I could not
    find anything appropriate.

    I want to use WWW::Google::SiteMap::Robot and the documentation is not
    very detailed.
    The url restrictions can be given as regexp reference but there are no
    examples.

    Any help will be appreciated.

    Best regards
    Martin

    --
    perl -e '$S=[[73,116,114,115,31,96],[108,109,114,102,99,112],
    [29,77,98,111,105,29],[100,93,95,103,97,110]];
    for(0..3){for$s(0..5){print(chr($S->[$_]->[$s]+$_+1))}}'
     
    Martin Kissner, Feb 1, 2006
    #1
    1. Advertisements

  2. Martin Kissner

    Guest

    Martin Kissner wrote:
    > how do I create a regexp reference?
    > I checked perldoc perlref and perldoc -q 'reference'


    Try 'perldoc perlop' and look for 'qr'

    --
    http://DavidFilmer.com
     
    , Feb 1, 2006
    #2
    1. Advertisements

  3. wrote :
    > Martin Kissner wrote:
    >> how do I create a regexp reference?
    >> I checked perldoc perlref and perldoc -q 'reference'

    >
    > Try 'perldoc perlop' and look for 'qr'
    >

    Thank you.
    I also saw, there were some examples in the documentation which I
    didn'T notice before.

    Best regards
    Martin

    --
    perl -e '$S=[[73,116,114,115,31,96],[108,109,114,102,99,112],
    [29,77,98,111,105,29],[100,93,95,103,97,110]];
    for(0..3){for$s(0..5){print(chr($S->[$_]->[$s]+$_+1))}}'
     
    Martin Kissner, Feb 1, 2006
    #3
    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. Greg Hurrell
    Replies:
    4
    Views:
    334
    James Edward Gray II
    Feb 14, 2007
  2. Ivan V.
    Replies:
    5
    Views:
    160
    Giles Bowkett
    Jul 5, 2007
  3. Mikel Lindsaar
    Replies:
    0
    Views:
    745
    Mikel Lindsaar
    Mar 31, 2008
  4. Joao Silva
    Replies:
    16
    Views:
    662
    7stud --
    Aug 21, 2009
  5. fenisol3

    regexp quick reference card

    fenisol3, Apr 23, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    205
    Bo Johanson
    Apr 26, 2004
  6. Ceesaxp
    Replies:
    8
    Views:
    245
    Brian McCauley
    Dec 6, 2006
  7. Uldis  Bojars
    Replies:
    2
    Views:
    334
    Janwillem Borleffs
    Dec 17, 2006
  8. Matìj Cepl

    new RegExp().test() or just RegExp().test()

    Matìj Cepl, Nov 24, 2009, in forum: Javascript
    Replies:
    3
    Views:
    421
    Matěj Cepl
    Nov 24, 2009
Loading...