Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: subsitute s/ and match m/ failure

by Bloodnok (Vicar)
on Jan 22, 2009 at 15:29 UTC ( #738188=note: print w/ replies, xml ) Need Help??


in reply to subsitute s/ and match m/ failure

As clarification of what's been said elsewhere, you are testing the wrong element of the split ... to use your original code, change

$model =~ s/\.log$//; die if $model =~ /log/;
to read
$ip =~ s/\.log$//; die if $ip =~ /log/;

A user level that continues to overstate my experience :-))


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

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (10)
As of 2015-07-02 10:13 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 (33 votes), past polls