What are Sub routines?

Answer Posted / dhanya

A routine or subroutine also referred to as a function,
procedure, and subprogram is a portion of code that may be
called and executed anywhere in a program. For example, a
routine may be used to save a file or display the time.
Instead of writing the code for these commonly performed
tasks, routines are made and called when these tasks need to
be performed. Below is a basic example of a Perl subroutine.

Is This Answer Correct ?    4 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is difference between rest api and restful api?

741


What is chrome logger?

763


How does php work with apache?

732


What are php magic methods/functions?

767


What is regex in html?

714


How can you tell if a number is even or odd without using any condition or loop?

767


Is php dying 2018?

742


How we can retrieve the data in the result set of mysql using php?

760


How do you check is php not empty?

749


What is the difference between array_map () and array_shift ()?

738


How to block direct directory access in PHP?

738


Which is faster for or foreach php?

702


Tell me how can I display text with a php script?

744


What are new features in php 7?

761


How do I run a php file?

718