Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: [Perl 5.14, regex]: Problems with /g, \G and pos()

by wjw (Priest)
on Oct 19, 2013 at 13:41 UTC ( [id://1058918]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $str = "  xyz"
    print "$str\n";
    
    ...
    print "$str\n";
    print "@-\n";
    print "@+\n";
    
  2. or download this
      xyz
    match1: pos=2
      xyz
    ...
      xyz
    2 2
    2 2
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2024-04-23 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found