#! /usr/bin/perl -p __DATA__ hello goodbye
Is the same as:
#! /usr/bin/perl while ( <> ) { } continue { print } __DATA__ hello goodbye
You are not doing anything with the DATA filehandle.
In reply to Re: -p option with __DATA__
by jwkrahn
in thread -p option with __DATA__
by jdalbec
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |