Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Unable to match newline

by linuxer (Curate)
on Nov 17, 2015 at 20:10 UTC ( #1147952=note: print w/replies, xml ) Need Help??


in reply to Re^2: Unable to match newline
in thread Unable to match newline

Regarding the '(?s)': Good point. I must admit, I did not recognize (obviously) that. I'm not used to it. You're right.

Regarding the "emulate the -z": Perl has a similar switch. Checkout perldoc perlrun and look for the first command switch description ;-)

edit: s/command line/command/

Replies are listed 'Best First'.
Re^4: Unable to match newline
by robinson (Novice) on Nov 17, 2015 at 20:37 UTC

    Thank you! Thank you! Thank you! Thank you!

    So all I needed was "perl -n0e"

    I plan to convert this mix of shell and perl program into a full perl version but that will be another day as I have to learn quite a few more things about perl :)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2020-05-29 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (166 votes). Check out past polls.

    Notices?