Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^4: magic-diamond <> behavior -- WHAT?!

by JavaFan (Canon)
on Oct 28, 2009 at 01:55 UTC ( #803554=note: print w/ replies, xml ) Need Help??


in reply to Re^3: magic-diamond <> behavior -- WHAT?!
in thread magic-diamond <> behavior -- WHAT?!

Your 'ack' is wrong on two accounts. First of all, pod2html doesn't do anything more than using a module, and calling a single sub in that. The work is done in ..../lib/5.10.1/Pod/Html.pm.

But even then, searching for <ARGV> or <>won't reveal much. But this is relevant:

local(@ARGV) = @_; ... local *POD; unless (@ARGV && $ARGV[0]) { $Podfile = "-" unless $Podfile; # stdin open(POD, "<$Podfile") || die "$0: cannot open $Podfile file for input: $!\n" +; } else { $Podfile = $ARGV[0]; # XXX: might be more filenames *POD = *ARGV; } ... my @poddata = <POD>;


Comment on Re^4: magic-diamond <> behavior -- WHAT?!
Select or Download Code
Re^5: magic-diamond <> behavior -- WHAT?!
by Anonymous Monk on Oct 28, 2009 at 02:26 UTC
    Huh, my ack is wrong?

    First of all, pod2html doesn't do anything more than using a module

    That is what it does now, it wasn't always a module.

    But even then, searching for <ARGV> or <>won't reveal much. But this is relevant

    It shows magic isn't used.

      It shows magic isn't used.

      So what is <POD> do if not magic?

      mkdir /tmp/aaa cd /tmp/aaa touch a.pod b.pod 'rm * |' pod2html * ls

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (15)
As of 2015-07-02 17:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (44 votes), past polls