Hi all,
(please ignore the "intermidate" thing)
as far as i know, returning anything from a sub, object etc, usualy returns an array, sorry dont have time to check the script, but try,
@MyArray = &YourFunction(pass variables here); ## or
$MyString = &YourFunction(pass variables here); ##might work!
--------------
sub YourFunction{
@array =@_;
(do something)
return $YourString; ##wich ya get a string
return @YourArray; ##wich ya get an array, i think the
array objects seperated by spaces!
(and furthermore you can change the
space to something else through a
special command to the perl
interperter! :P )
}
---------------
calling objects is done a different way! :P
if your going to pass hashes there is another way to do it,
but ya gonna have to ask! :P
c ya, have fun!
www.arobcorp.com
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.