![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| calling sed problem!! | andy2000 | Shell Programming and Scripting | 1 | 05-02-2007 01:38 PM |
| Problem while calling Oracle 10g SQLPLUS files | ganapati | UNIX for Advanced & Expert Users | 2 | 05-01-2007 03:03 AM |
| chpass subroutine not updating NIS | rmm47 | High Level Programming | 1 | 03-30-2007 10:30 AM |
| shell script calling problem | dhananjaysk | Shell Programming and Scripting | 2 | 03-30-2006 10:48 AM |
| how to write stderr in a subroutine log file?.. | sekar sundaram | Shell Programming and Scripting | 1 | 11-24-2005 09:49 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Problem in subroutine calling
Hi,
we can call the subroutines using two ways .... 1) calling subroutine name preceeded by & symbol. 2)Another one is without &symbol.... what is the diff b/w these two.... ############################ #usr/bin/perl fun; sub fun { print "hi this is from perl\n"; } ############################ the above code is doesn't worked for me...... if i called like fun; but i changed the subroutine call like this &fun; then it works .............plz tell me what is happenning here. In my project script, they called the subroutines either way....in that it works..........i tried this small experiment it doesn't worked.....plz help me out. Thanks in advace... Sarwan. |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|