Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^15: Comparing Values PER Sub-folder

by omegaweaponZ (Beadle)
on Sep 06, 2012 at 00:32 UTC ( #991979=note: print w/ replies, xml ) Need Help??


in reply to Re^14: Comparing Values PER Sub-folder
in thread Comparing Values PER Sub-folder

Would File::Basename help in this scenario?

Err, looks like it does actually help...quite a bit! Here is the code I'm using:

my $basedir = dirname($curDir); my @lines = read_file( $curFile ) ; my $numLines = @lines; push @{ $dirLines{$basedir} }, $numLines;
From the previous code assigned to this, I can properly get a true/false from an if/else statement. I THINK I might be all set with this now, thank you again for all your help! Very informative and learned a lot


Comment on Re^15: Comparing Values PER Sub-folder
Download Code
Re^16: Comparing Values PER Sub-folder
by Kenosis (Priest) on Sep 06, 2012 at 01:21 UTC

    Excellent, omegaweaponZ! Aren't the available modules just amazing? Your use of File::Basename makes a lot of sense. You've done well tackling this issue. And you're quite welcome...

    Take care.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (13)
As of 2014-07-24 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (160 votes), past polls