Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?

Re: Format quine (slightly obfu)

by pmonk4ever (Friar)
on Dec 03, 2009 at 18:08 UTC ( #810900=note: print w/replies, xml ) Need Help??

in reply to Format quine (slightly obfu)


Ok, the output I get in Windoze Perl 5.10.0 is that the file prints. Is that correct?

I'd think not, based on the format it= line. I have just begun to peruse these delightful nodes and can get some of them to run ok here at $work, but it's clear that I'll have to run some of these @ $home to get the full effect!

Thanks for the fun code!


"No trees were harmed in the creation of this node. However, a rather large number of electrons were somewhat inconvenienced."

Replies are listed 'Best First'.
Re^2: Format quine (slightly obfu)
by bv (Friar) on Dec 04, 2009 at 00:13 UTC

    Thank you! You're correct in that it prints out itself. It's not strictly a true quine, since it reads in its own file, but fun nonetheless. Read on for a breakdown of how it works:

    Hope that helps!

    @_=qw; Just another Perl hacker,; ;$_=q=print "@_"= and eval;

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://810900]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (3)
As of 2018-06-24 13:23 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (126 votes). Check out past polls.