Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Does Perl 5 (or 6?) need another built-in variable for the -F switch? (re)

by tye (Sage)
on Nov 02, 2006 at 16:34 UTC ( [id://581919]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    BEGIN { $sep= '' }
    if(  '' eq $sep  &&  1 < @F  ) {
        ( $sep )= /\Q$F[0]\E(.*?)\Q$F[1]\E/;
    }
    
  2. or download this
    my $pos= 0;
    for my $f (  0..$#F  ) {
    ...
        substr( $_, $-[0], $+[0]-$-[0], $G[$f] );
    }
    pos($_)= 0;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-24 00:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found