Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: print source golf

by LanX (Archbishop)
on Oct 14, 2019 at 16:17 UTC ( #11107431=note: print w/replies, xml ) Need Help??


in reply to print source golf

> Why does it do that?

readline in list context.

FWIW

use strict; use warnings; seek DATA,0,0; print scalar <DATA>; __DATA__
prints

use strict;

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2020-01-18 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?