Ask a Question related to PERL Modules, Design and Development.

  1. #1

    Default Re: A Possible Module?

    Steffen Müller wrote:
    [snip]
    > *_=*DATA;seek+_,0,0;print<_>;
    > __DATA__
    > What's a quine?
    That isn't a quine, since it reads it's own source in order to print
    itself. If it were a Real quine, it wouldn't use the *DATA filehandle.

    --
    $a=24;split//,240513;s/\B/ => /for@@=qw(ac ab bc ba cb ca
    );{push(@b,$a),($a-=6)^=1 for 2..$a/6x--$|;print "$@[$a%6
    ]\n";((6<=($a-=6))?$a+=$_[$a%6]-$a%6:($a=pop @b))&&redo;}
    Benjamin Goldberg Guest

  2. Similar Questions and Discussions

    1. How to set module to be on top of another module
      hello guys!! i'm just newbie in flex, and cant figured out how to manage loaded modules to set who's on top of each other. if i load one module...
    2. RFC: New module 'Module::Bundled::Files'
      I've written a module, tentatively named Module::Bundled::Files. A section of the POD docs is included to (attempt) to explain it's purpose. It...
    3. looking for a module
      has anyone ever seen modules with any of these features? 1) take a block of text and list all words in alpha order a) list word only once with...
    4. Module Object and sub module function
      Howdy folks, Yet another module question. I'm so close and I've done this but I can't get it to work. I am writing a module that is an...
    5. nvnet module not working after kernel (and module) recompile
      --- SYNeR <tups77@tsn.cc> escribió: Make sure that when you 'make-kpkg <options here> kernel_image kernel_headers' that you have that...
  3. #2

    Default Re: A Possible Module?

    Benjamin Goldberg <ben.goldberg@hotpop.com> writes:
    > Steffen Muller wrote:
    > [snip]
    >> *_=*DATA;seek+_,0,0;print<_>;
    >> __DATA__
    >> What's a quine?
    >
    > That isn't a quine, since it reads it's own source in order to print
    > itself. If it were a Real quine, it wouldn't use the *DATA filehandle.
    (*_,*_) = \(*ARGV,$${^W});
    print <> if split

    --
    Steve
    Steve Grazzini Guest

  4. #3

    Default Re: A Possible Module?

    Benjamin Goldberg <ben.goldberg@hotpop.com> wrote:
    > Steve Grazzini wrote:
    > > (*_,*_) = \(*ARGV,$${^W});
    > > print <> if split
    >
    > Ehh? This doesn't print out anything. It just
    > hangs, waiting for EOF.
    % cat quine
    (*_,*_) = \(*ARGV,$${^W});
    print <> if split
    % perl quine
    (*_,*_) = \(*ARGV,$${^W});
    print <> if split

    It does need to be saved in a file -- and of course
    $^W needs to be zero.

    And yes, I know it's not really a quine. :-)

    --
    Steve
    Steve Grazzini Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139