Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

New to Perl Scripts! Need help Bad.

Status
Not open for further replies.

babbs

MIS
Mar 26, 2003
12
0
0
US
I need help with this question if possable..

Question is:

Call the function DoitNow Passing the Value MyVal into the Funtion and returning the result X from the function?

Just starting out and I have been givin this task. I Think I know where to begin but would love some help..

Thanks ahead of time.....

Babbs
 
Sounds like school work to me.
Code:
sub DoItNow{
  my $MyVal = $_[0];

  #Do Something here
  my $x = "something";

  return $x 
}

my $value = "blah";
print &DoItNow($value);

___________________________________
[morse]--... ...--[/morse], Eric.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top