Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: HTML::Parser / Regex

by AnomalousMonk (Archbishop)
on May 27, 2017 at 07:30 UTC ( [id://1191352]=note: print w/replies, xml ) Need Help??


in reply to Re^2: HTML::Parser / Regex
in thread HTML::Parser / Regex

... the version that I am using does't support Regexp::Common.

Why do you say that? What errors/system messages do you get? The code I posted here uses Regexp::Common and runs under Perl 5.8.9. Are you sure you have the module installed on your system?


Give a man a fish:  <%-{-{-{-<

Replies are listed 'Best First'.
Re^4: HTML::Parser / Regex
by MissPerl (Sexton) on May 27, 2017 at 08:52 UTC
    Hi there! I've tried to run the your code .

    Can't locate Regexp/Common.pm in @INC (@INC contains: /tools/perl/5.8.8/linux32/lib/5.8.8/...)

    Correct me if I am wrong, I've tried instmodsh for list modules. But I don't see Regexp::Common in the list.

    As the Perl was installed in school's desktop, I dare not to make any changes for installing a new module, I did tried once, then got some permission denied error.

      As the Perl was installed in school's desktop, I dare not to make any changes for installing a new module, I did tried once, then got some permission denied error.

      See Yes, even you can use CPAN

      You will need an older version of Regexp::Common, since the newest one requires perl version 5.010 (v5.10.0) as minimum. Regexp-Common-2016020301 is the last release whose requirement is below 5.10.0 (it requires 5.00473).

      You dont't even need to install it. Quick and dirty test setup:

      • get the tarball
      • unpack it to some directory (e.g. C:\\Users\me\Desktop\perl)
      • set the environment variable PERL5LIB to include C:\\Users\me\Desktop\perl\Regexp-Common-2016020301\lib
      • run your perl program which uses Regexp::Common
      perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
        Hi shmem, thanks for the steps. I am going to google it for a little bit as I am not too familiar with linux environment yet.

        At the mean time, is there any other method that I can achieve my goal? like storing the found or empty value into variables ?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1191352]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-16 07:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found