boofulls
asked on
chop up code
if $test = "this is a test file"
(words seperated by spaces)
how do i make
$var1="this"
$var2="is"
$var3="a"
$var4="test"
$var5="file"
i tried
($var1,$rest)=split(" ",$test);
($var2,$rest1)=split(" ",$rest1);
etc....but it just works for the first two values....
(words seperated by spaces)
how do i make
$var1="this"
$var2="is"
$var3="a"
$var4="test"
$var5="file"
i tried
($var1,$rest)=split(" ",$test);
($var2,$rest1)=split(" ",$rest1);
etc....but it just works for the first two values....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.