|
-
Dec 3rd, 2002, 03:05 PM
#1
New Member
Using reguar expression if varName contains the log entry...
varName =~ s/\\/\//;
That will change the slash in your example the right way. This is the most cryptic part of Perl. After that you simply look for the last occurance of a "\" character. Then substring out from position 0 to the position of the last "\".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|