Your skill will accomplish what the force of many cannot |
|
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
STDIN or Filenames given on Commandline, read with the magic <> Nope. All that's on the command line isn't read via <>, it is in @ARGV. Why _DATA__? Because I want to feed it some stuff whose content I don't know. If you use the __DATA__ token in a perl script, you must know what you put after that beforehand, which is quite the same as with a here-document in a -e script. Well, of course you could append something to a script, and invoke it later, which would be a very odd way to use the __DATA__ token. But you could feed your script something with a command line switch and use e.g. Getopt::Long:
--shmem
In reply to Re^7: 'perl -e' and '__DATA__' What's wrong?
by shmem
|
|