Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Re: Regx Question

by DS (Acolyte)
on Jul 30, 2002 at 22:58 UTC ( [id://186388]=note: print w/replies, xml ) Need Help??


in reply to Re: Regx Question
in thread Regx Question

Hey mkmcconn , it works fine but when the path get longer it doesn't ,, I am trying to caputure the last one before \final no matter how big is the path and delete it ,, I am trying to modify it here hopefully , I will get it .. thanks

Replies are listed 'Best First'.
Re: Regx Question
by Abigail-II (Bishop) on Jul 31, 2002 at 11:05 UTC
    my @chunks = split /\\/ => $data; splice @chunks => -2, 1 if $chunks [-1] eq 'final'; $data = join "\\" => @chunks;
    Abigail
      What is your rule of thumb for using => instead of , in argument lists?

      laughingboy

        => separates arguments with different types/roles.

        Abigail

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-04-23 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found