need help with subroutines & funtions

2008-09-08 Thread Raul Ruiz Jr.
I am taking an online ceu course in scripting with Unix. I have been stumped by this project. Can anyone out there help me out a bit. I created a script at the bottom and it does not quite work. What am I missing?  I know I am missing some thing but this is my first time working with perl. I kno

Issue with my subroutine/library script.

2008-09-03 Thread Raul Ruiz Jr.
I created a card shuffling program and it works fine. However, for my project I am to place the shuffling part of my code in a separate script as a subroutine. I am to remove the code that does the shuffling and include it as another function in obj13-lib.pl. So I did this and  after the first "h

issue with my subroutine/library script.

2008-09-03 Thread Raul Ruiz Jr.
I created a card shuffling program and it works fine. However, for my project I am to place the shuffling part of my code in a separate script as a subroutine. I am to remove the code that does the shuffling and include it as another function in obj13-lib.pl. So I did this and  after the first "

need help on how to make a lib.pl function.

2008-09-01 Thread Raul Ruiz Jr.
Here is a basic card shuffling program I wrote. I am learning about developing perl libraries. How do I remove my code that does the shuffling and include it as another function in a lib.pl. After the first "hand" is dealt, call the shuffling function again before dealing another, different ha