Online Learning Applications for Technical English


Home
Syllabus
Assignments

Instructor



Producing Homepages

The split function will break up a string according to a separator and return the separated parts. The format is:
  split( /separator/, $string );
For example,
  $line = "Aki,1,1,0";
  @line_items = split( /,/, $line );    # gives ("Aki", "1", "1", "0")

  $line = "Ben,0,,0";
  @line_items = split( /,/, $line );    # gives ("Ben", "0", "", "0")

[ Back ]