Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Re: RFC: Pod::Remove

by domm (Chaplain)
on Mar 13, 2003 at 13:56 UTC ( #242684=note: print w/replies, xml ) Need Help??

in reply to Re: RFC: Pod::Remove
in thread RFC: Pod::Remove

* Why strings?

Because for some reasons having to do with cpanstats I want to analyse the code of some CPAN modules. I'm not interested in the POD, so I want to remove it. And I do not want to mess around with files (especially when running some analysis on all of CPAN) just to remove POD.

What I want is something like

my $podless=remove_pod($code)
so I can mung $podless.

* What about DATA filehandles?

I'm not sure what you mean by this..

-- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}

Replies are listed 'Best First'.
Re: Re: Re: RFC: Pod::Remove
by dakkar (Hermit) on Mar 13, 2003 at 14:12 UTC

    What I meant is: since you are removing everything after __DATA__, if the program had something besides POD in there, and accessed it via the DATA filehandle, it would no longer work.

    Reading your reply, anyway, I'm starting to believe you are not going to run those script.

            dakkar - Mobilis in mobile
      Oh, yes

      I know this, and, you're right, I won't run the code.

      If I choose to use my proposed module, I might add a parameter so users can specify if they want to drop stuff after __DATA__ or not...

      -- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://242684]
SuicideJunkie replaces stale cookies with fresh on the platter on the sideboard.
[SuicideJunkie]: So, possibly interesting thing; I had that script which was using more than all the ram to open an absurdly large spreadsheet. I set it up to spin overnight nightly, so it stopped releasing memory since it was never fully exited.
[SuicideJunkie]: Didn't expect that to be a problem. There's plenty of disk space for swap, and the memory space would be reused the next day. But apparently virtualbox dies with a guru meditation when there's no physical memory unused on start.

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (3)
As of 2017-04-26 22:44 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (491 votes). Check out past polls.