#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Posts
    1
    Rep Power
    0

    Subroutines in Perl


    Tnx
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Apr 2009
    Posts
    1,930
    Rep Power
    1225
    Answer to homework question was provided on the perlmonks crosspost.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Location
    Oklahoma
    Posts
    11
    Rep Power
    0
    What are you asking? Perhaps give code examples or something and then we can help.
  6. #4
  7. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2013
    Location
    Oklahoma
    Posts
    11
    Rep Power
    0
    Code:
    sub function(){
               #code
    };
    Was there a quesiton?
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Apr 2009
    Posts
    1,930
    Rep Power
    1225
    This is interesting. It appears that the admins or moderators edited the thread without leaving any comment. Not only was the OP's question removed, but my link to the cross post was edited. I could repost the link, but why? If anyone wants to see the question, they can easily find it on perlmonks.
  10. #6
  11. kill 9, $$;
    Devshed Supreme Being (6500+ posts)

    Join Date
    Sep 2001
    Location
    Shanghai, An tSín
    Posts
    6,897
    Rep Power
    3886
    Originally Posted by jcarney1987
    Code:
    sub function(){
               #code
    };
    Was there a quesiton?
    You shouldn't define a subroutine like that unless you're absolutely sure that you want to use a prototype for a good reason. More here.

    Comments on this post

    • Laurent_R agrees : I fully agree.

IMN logo majestic logo threadwatch logo seochat tools logo