![]() |
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 |
| perl-like split function for bash? | eur0dad | Shell Programming and Scripting | 5 | 09-05-2008 06:23 PM |
| awk - split function | fusionX | Shell Programming and Scripting | 7 | 04-10-2008 02:32 AM |
| Split Command in Perl | rochitsharma | UNIX for Advanced & Expert Users | 9 | 03-09-2008 03:56 AM |
| split question perl | reggiej | Shell Programming and Scripting | 7 | 07-21-2006 04:18 PM |
| split function | ktsirig | UNIX for Dummies Questions & Answers | 4 | 09-29-2005 10:58 AM |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
perl split function
Code:
$mystring = "name:blk:house::";
print "$mystring\n";
@s_format = split(/:/, $mystring);
for ($i=0; $i <= $#s_format; $i++) {
print "index is $i,field is $s_format[$i]";
print "\n";
}
$size = $#s_format + 1;
print "total size of array is $size\n";
|
| Bookmarks |
| Tags |
| perl split |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|