in reply to Processing (from a variable) the 'new' methods hash and storing it to a hash ref

You've got exactly the right idea, BrowserUk, but if only it was that easy :(

You see - I cannot let it physically execute the code; the only way is messy regex I'm thinking :\

--nutshell

  • Comment on Re: Processing (from a variable) the 'new' methods hash and storing it to a hash ref

Replies are listed 'Best First'.
Re: Re: Processing (from a variable) the 'new' methods hash and storing it to a hash ref
by BrowserUk (Patriarch) on Oct 03, 2002 at 01:55 UTC

    In that case, you going to have to explain your problem a lot more clearly.

    What is "blow code"?

    You mention a var, $code twice, but it doesn't appear anywhere in your examples.

    What you appear to be saying is that you have a program source or sources, that makes calls to a function Lique() in a package CX, and that you want to parse these sources, locate each call to new CX::Lique() or CX::Lique->new() and the extract the parameters passes on these calls into a hashref %info using a regex?

    Am I closer?


    Cor! Like yer ring! ... HALO dammit! ... 'Ave it yer way! Hal-lo, Mister la-de-da. ... Like yer ring!
      Yes!

      That's exactly what I need to do :)

      --nutshell