Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Inserting Code Before an -n/-p Loop

by Eily (Monsignor)
on Dec 18, 2018 at 10:03 UTC ( #1227384=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -MO=Deparse -M"Data::Dump; print 'Hi'" -ne ""
    use Data::Dump;
    print 'Hi';
    ...
        ();
    }
    -e syntax OK
    
  2. or download this
    perl -M"5.01;say q&" -Mstrict -anE " print 'Hi'; }&;{"
    ;use strict;use feature ':5.26';LINE: while (<>) {our @F=split(' ');
     print 'Hi'; }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2023-03-23 18:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Which type of climate do you prefer to live in?






    Results (60 votes). Check out past polls.

    Notices?