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

Re^4: Programs that write programs

by duelafn (Vicar)
on Oct 28, 2011 at 13:01 UTC ( #934388=note: print w/replies, xml ) Need Help??


in reply to Re^3: Programs that write programs
in thread Programs that write programs

<snark>

$ perl -e'' No code specified for -e.

</snark> :)

Update: Hm, seems to work fine with a file:

$ perl -w /tmp/empty.pl

Update 2: Nevermind, moritz is a clever boy, and laziness (leaving out whitespace) is not always a virtue.

Update 3: I think I prefer the symmetry and perl purity of: echo -n | perl | perl | perl | echo -n

Good Day,
    Dean

Replies are listed 'Best First'.
Re^5: Programs that write programs
by moritz (Cardinal) on Oct 28, 2011 at 13:17 UTC
Re^5: Programs that write programs
by Logicus on Oct 28, 2011 at 13:07 UTC
    Ah, but if it outputs nothing, how can you then run that nothing? In other words, outputting nothing, is the same as not outputting anything. Surely that's a no-program. Hrm... I wonder if it's considered a element in the set of all possible quines or not.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://934388]
help
Chatterbox?
[Tanktalus]: perldigious: I'm not looking to get rich. I'm looking for interesting work, with good continuity of employment, and maintenance of our current lifestyle. (An improvement wouldn't be bad, either, but that's not a requirement ;) )
erix enjoys the confusion++
[Your Mother]: :P
[Tanktalus]: Without confusion, I'd be out of a job ;)
[Tanktalus]: Already. :D
[Lady_Aleena]: Your Mother, I wish it did have a way to put in a directory to search.
[Your Mother]: Thatís silly. Itís a string op tool.
[Lady_Aleena]: So I guess I'll go argue with File::Find and grep.
[Your Mother]: I would probably use Path::Tiny instead for it's slurp and such.
[Your Mother]: s/it's/its/

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2017-05-23 19:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?