Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^8: following if condition fails to print its variable using perl?

by huck (Parson)
on Mar 16, 2017 at 04:59 UTC ( #1184819=note: print w/replies, xml ) Need Help??


in reply to Re^7: following if condition fails to print its variable using perl?
in thread following if condition fails to print its variable using perl?

Did it post an error/warning or do you mean it isnt doing what you wanted it to do?

if its not doing what you wanted it to do are the names as seen from print 'name   :'.$name,"\n"; what you expected them to be?

Maybe adding this change would help you understand what is going on

if (( my $base_name = $name) =~ s/\.config$// ) { print 'base_name:'.$base_name."\n"; if ( $name_map->{$base_name} ) {

This could help you understand too

my $name_map = read_map( $mapfile ); use Data::Dumper; print Dumper($name_map);

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2020-03-28 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    To "Disagree to disagree" means to:









    Results (168 votes). Check out past polls.

    Notices?