[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[no subject]



[...]

    Keith> use File::Basename;

    Keith> my ($other_way, undef, undef) = fileparse($full_path,);

    Keith> print ($other_way, "\n");

Actually my $name = basename( $full_path ) would probably be better
(not to mention the undefs are extraneous as any extra list elements
would just be dropped; a more succinct way would have been

my $path = ( fileparse( $full_path ) )[0];

-- 
Fletch                | "If you find my answers frightening,       __`'/|
fletch at phydeaux.org   |  Vincent, you should cease askin'          \ o.O'
                      |  scary questions." -- Jules                =(___)=
                      |                                               U


</pre>
<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<hr>
<ul><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><a name="00334" href="msg00334.html">[ale] Perl Regexe questions</a></strong>
<ul><li><em>From:</em> cfowler at outpostsentinel.com (Christopher Fowler)</li></ul></li>
</ul></li></ul>
<!--X-Follow-Ups-End-->
<!--X-References-->
<ul><li><strong>References</strong>:
<ul>
<li><strong><a name="00330" href="msg00330.html">[ale] Perl Regexe questions</a></strong>
<ul><li><em>From:</em> keith.watson at gtri.gatech.edu (Keith R. Watson)</li></ul></li>
</ul></li></ul>
<!--X-References-End-->
<!--X-BotPNI-->
<ul>
<li>Prev by Date:
<strong><a href="msg00330.html">[ale] Perl Regexe questions</a></strong>
</li>
<li>Next by Date:
<strong><a href="msg00332.html">[ale] Cable Modem Strangeness On The Road</a></strong>
</li>
<li>Previous by thread:
<strong><a href="msg00330.html">[ale] Perl Regexe questions</a></strong>
</li>
<li>Next by thread:
<strong><a href="msg00334.html">[ale] Perl Regexe questions</a></strong>
</li>
<li>Index(es):
<ul>
<li><a href="maillist.html#00331"><strong>Date</strong></a></li>
<li><a href="threads.html#00331"><strong>Thread</strong></a></li>
</ul>
</li>
</ul>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
</body>
</html>