Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^2: REGEX Non-Destructive Flag

by quester (Vicar)
on Jan 11, 2012 at 06:09 UTC ( [id://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";'

Replies are listed 'Best First'.
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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://947293]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2025-03-27 17:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (70 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.