|
|
Perl Split Function - Perl
|
Views : 246
|
|
Tagged in : Perl
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
Perl Split Function
The split() function breaks apart an expression based on a delimiter value. This can be used to parse a scarlar variable into an array so each field can be treated as a single element.
$value = "field1:field2:lastfield";
@fields = split(/:/,$value);
@fields = "field1", "field2", "lastfield"
|
|
By Geethalakshmi, On - 2010-09-17 |
|
|
|