Quick Modify for command line

I am looking to modify the following program to not pull data from within it, but to process data that is piped to it from the command line.

while( <DATA> ){
   s/(?<= {5}).*//;
word   test
word     delete
word           delete
Who is Participating?
käµfm³d 👽Connect With a Mentor Commented:
Change "<DATA>" to "<>" (i.e. remove "DATA"). Then you can ditch your "__DATA__" section as well.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.