Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: script to detect spaces

by karlgoethebier (Abbot)
on Apr 13, 2018 at 13:45 UTC ( [id://1212807]=note: print w/replies, xml ) Need Help??


in reply to script to detect spaces

Untested legacy code is for free:

#!/usr/bin/env perl use strict; use warnings; use feature qw(say); use Data::Dump; my $string = q(lorem ipsum kizuaheli); say length $string; $string =~ m/(kizuaheli)/; say $1; dd \@-; dd \@+; say qq($-[1] $+[1]); __END__

Cheated from brian_d_foy's answer at How can I find the location of a regex match in Perl?

«The Crux of the Biscuit is the Apostrophe»

perl -MCrypt::CBC -E 'say Crypt::CBC->new(-key=>'kgb',-cipher=>"Blowfish")->decrypt_hex($ENV{KARL});'Help

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2024-03-29 13:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found