Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: REGEX Non-Destructive Flag

by quester (Vicar)
on Jan 11, 2012 at 06:09 UTC ( #947293=note: print w/ replies, xml ) Need Help??


in reply to Re: REGEX Non-Destructive Flag
in thread REGEX Non-Destructive Flag

Data::Dump::Streamer can do that:

use Modern::Perl; use Data::Dump::Streamer; my $x= "cr-\15, lf-\12, tab-\11, bs-\10"; say Dump $x;

prints

$VAR1 = "cr-\r, lf-\n, tab-\t, bs-\b";

or as a one-liner,

perl -MDDS -wE 'say Dump "cr-\15, lf-\12, tab-\11, bs-\10";'


Comment on Re^2: REGEX Non-Destructive Flag
Select or Download Code
Re^3: REGEX Non-Destructive Flag
by mmartin (Monk) on Jan 12, 2012 at 16:27 UTC
    Hey quester,

    Thanks for the reply... Yea that did it! Thanks alot.


    Thanks Again,
    Matt

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2015-07-04 02:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (57 votes), past polls