![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| perl equivalent to grep -c | popeye | Shell Programming and Scripting | 6 | 04-18-2008 10:57 PM |
| Strtok function.... | Tanvirk | Linux | 3 | 01-24-2008 07:16 AM |
| export equivalent command in PERL | ammu | Shell Programming and Scripting | 1 | 09-17-2007 12:46 PM |
| better way than strtok? | annie | High Level Programming | 7 | 10-05-2005 11:01 AM |
| Perl equivalent of ksh if / echo statement | gefa | Shell Programming and Scripting | 2 | 02-17-2005 09:07 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi All,
Is their any equivalent for strtok (in c) to use in perl script. Thanks in advance. JS |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
I believe the split() function is the same. split() splits a string into a list of tokens:
$foo = 'this is a test'; @tokens = split(/ /,$foo); print "$_\n" fo @tokens; output: this is a test split - perldoc.perl.org |
|||
| Google The UNIX and Linux Forums |