Kathryn Tate wrote:
>I have a program which used a library I wrote.
>I am using these two lines in my program:
>unshift( @INC, "." );
>In the current directory I have the program, rmadmin.perl; the library
>Colors.pl. Our job was to write the library that would be used by the
Does that mean that you've already completed your assignment?
Write the library is distinct from getting the written library called up.
Standard disclaimer applies (still somewhat if not quite a lot of a Noob
>I am finished with the library but my ##unshift(@INC, ".");##
>is not working.
>Class meets tomorrow and I can find out then what the scoop is--, but
>was hoping someone could tell me sooner what the problem may be.
If your assigned reference material wasn't adequate so as to get you
into what is needed to add the current working directory then you need
to tell your instructor. Otherwise, this have the potential to
circumvent student-teacher relation; and, to do such circumvention
cheats everyone including future students of your same teacher. Please
do not affect future students in that way.
This once, I'll input, see what happens.
It's something about the context of how you try to use the dot (works in
some places, not others ie shell useage versus equivalent in a Perl script)
my $cur_w_dir = cwd;
unshift( @INC, $cur_w_dir );