[Boulder.pm] Boulder-pm Digest, Vol 39, Issue 9

Walter Pienciak wpiencia at thunderdome.ieee.org
Wed Aug 22 09:05:47 PDT 2012


On Wed, Aug 22, 2012 at 09:01:41AM -0700, Ed Dow wrote:
> 6. Re: Roll Call (Ed Dow)
> 
> Foo... always glad to have a fellow tech interested in Perl, no matter how "noobish" the questions.  Throw some out here.  Who knows you might ask something that hasn't been discussed in a while or maybe never.  ;-)
> 
> Here's a brain tickler for everyone.... write a quine (a program that outputs itself exactly) in Perl.  This was a question I was asked in a recent interview.  In my opinion, completely unfair and technically usless but everything is fair game in the interviewing process.  

I'm a cheater:

    #!/usr/bin/perl

    system("cat $0");

Walter


More information about the Boulder-pm mailing list