Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: My first module

by perladdict (Chaplain)
on Apr 27, 2006 at 06:32 UTC ( [id://545969]=note: print w/replies, xml ) Need Help??


in reply to My first module

hi,monk

here is my code

#!/usr/bin/perl -w use strict; my $var=10; my $new_var=testsub($var); print "$new_var\n"; sub testsub { my $in_arg=shift; my $new_arg=$in_arg+10; return($new_arg); }

Edit: g0n - corrected code tags

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://545969]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2024-04-26 01:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found