I could be wrong, but wouldn't something like the following work for what you want to do? the path will stay relative to your script.<br><br>#!/usr/bin/perl -w<br><br>open(IN, "<../test/test.txt");<br>while(<IN>)
<br>{<br> print;<br>}<br><br><br><br><div><span class="gmail_quote">On 8/24/07, <b class="gmail_sendername">Larson, Timothy E.</b> <<a href="mailto:TELarson@west.com">TELarson@west.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Huzzah, I'm back among the Perly ones. :) I feel so rusty...<br><br>I want to implement a simple config file by requiring a file at runtime<br>- seems easy enough. I'd like to do it smart, though, so I don't have
<br>to edit the path in my script when this moves into production. There's<br>got to be a simple way to get the abs path to <my_bin_dir>/../lib so the<br>thing is portable. Only a few lines to write myself, I suppose, but
<br>maybe even a one-liner if I just knew which function/module to use.<br>I've tried File::Spec and Cwd but can't get it quite right.<br><br>Baby steps back into the pool...<br><br>Tim<br>--<br>Tim Larson<br>InterCall, a subsidiary of West Corporation
<br>Eschew obfuscation!<br>_______________________________________________<br>Omaha-pm mailing list<br><a href="mailto:Omaha-pm@pm.org">Omaha-pm@pm.org</a><br><a href="http://mail.pm.org/mailman/listinfo/omaha-pm">http://mail.pm.org/mailman/listinfo/omaha-pm
</a><br></blockquote></div><br>