Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: subsitute s/ and match m/ failure

by svenXY (Deacon)
on Jan 22, 2009 at 15:00 UTC ( #738183=note: print w/ replies, xml ) Need Help??


in reply to subsitute s/ and match m/ failure

Hi,
since you split on ':' which is after .log,

$ip =~ s/\.log$//;
will do the trick.
Regards,
svenXY


Comment on Re: subsitute s/ and match m/ failure
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2015-07-06 06:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls