/Users/andrea/_magisterarbeit/korpus/clean/testkorpus/32/file10.html NN ----------------------------------------- : Home NP Authors NNS Recent JJ News NP Mirrors VVZ FAQ NP Feedback NN in IN Nicholas NP Clark NP perl NP 5 CD . SENT 8 CD . SENT 7 CD Text NN . SENT . SENT ParseWords NP Download NP . SENT perl NP 5 CD . SENT 8 CD . SENT 7 CD . SENT tar NN . SENT gz NN Annotate VV this DT POD JJ Module NN Version NP . SENT 3 LS . SENT 24 CD Source NN NAME NN SYNOPSIS NN DESCRIPTION NN EXAMPLES NNS AUTHORS NNS NAME NN Text NN . SENT . SENT ParseWords NNS parse VV text NN into IN an DT array NN of IN tokens NNS or CC array NN of IN arrays NNS SYNOPSIS NN use NN Text NN . SENT . SENT ParseWords NNS . SENT lists NNS nested VVD quotewords NNS delim NNS , , keep VV , , lines NNS . SENT words NNS quotewords NNS delim NN , , keep VV , , lines NNS . SENT words NNS shellwords NNS lines NNS . SENT words NNS parse VV line NN delim NNS , , keep VV , , line NN . SENT words NNS old JJ shellwords NNS lines NNS . SENT DEPRECATED VVN . SENT DESCRIPTION NN The DT nested VVN quotewords NNS and CC quotewords NNS functions NNS accept VVP a DT delimiter NN which WDT can MD be VB a DT regular JJ expression NN and CC a DT list NN of IN lines NNS and CC then RB breaks VVZ those DT lines NNS up RB into IN a DT list NN of IN words NNS ignoring VVG delimiters NNS that WDT appear VVP inside JJ quotes NNS . SENT quotewords NNS returns NNS all RB of IN the DT tokens NNS in IN a DT single JJ long JJ list NN , , while IN nested VVN quotewords NNS returns NNS a DT list NN of IN token JJ lists NNS corresponding JJ to TO the DT elements NNS of IN lines NNS . SENT parse VV line NN does VVZ tokenizing VVG on IN a DT single JJ string NN . SENT The DT quotewords NNS functions NNS simply RB call VVP parse VV line NN , , so RB if IN you're JJ only JJ splitting NN one NN line NN you PP can MD call VV parse VV line NN directly RB and CC save VV a DT function NN call NN . SENT The DT keep VVP argument NN is VBZ a DT boolean JJ flag NN . SENT If IN true JJ , , then RB the DT tokens NNS are VBP split VVN on IN the DT specified JJ delimiter NN , , but CC all DT other JJ characters NNS quotes NNS , , backslashes NNS , , etc FW . SENT are VBP kept VVN in IN the DT tokens NNS . SENT If IN keep VV is VBZ false JJ then RB the DT quotewords NNS functions NNS remove VV all DT quotes NNS and CC backslashes NNS that WDT are VBP not RB themselves PP backslash VV escaped VVN or CC inside RB of IN single JJ quotes NNS i NP . SENT e SYM . SENT , , quotewords NNS tries VVZ to TO interpret VV these DT characters NNS just RB like IN the DT Bourne NP shell NN . SENT NB NP . SENT these DT semantics NNS are VBP significantly RB different JJ from IN the DT original JJ version NN of IN this DT module NN shipped VVN with IN Perl NP 5 CD . SENT 000 CD through IN 5 CD . SENT 004 CD . SENT As IN an DT additional JJ feature NN , , keep VVP may MD be VB the DT keyword NN delimiters NNS which WDT causes VVZ the DT functions NNS to TO preserve VV the DT delimiters NNS in IN each DT string NN as IN tokens NNS in IN the DT token JJ lists NNS , , in IN addition NN to TO preserving VVG quote NN and CC backslash NN characters NNS . SENT shellwords NNS is VBZ written VVN as IN a DT special JJ case NN of IN quotewords NNS , , and CC it PP does VVZ token JJ parsing VVG with IN whitespace NN as IN a DT delimiter NN similar JJ to TO most JJS Unix NP shells NNS . SENT EXAMPLES NNS The DT sample NN program NN . SENT use NN Text NN . SENT . SENT ParseWords NNS . SENT words NNS quotewords VVZ s PP , , 0 CD , , q NN this DT is VBZ a DT test NN of IN quotewords NNS for IN you PP . SENT i NP 0 CD . SENT foreach NN words NNS print VVP i NP . SENT n NN . SENT i NP . SENT produces VVZ . SENT 0 CD . SENT this DT 1 CD . SENT is VBZ 2 CD . SENT a DT test NN 3 CD . SENT of IN quotewords NNS 4 CD . SENT for IN 5 CD . SENT you PP demonstrating VVG . SENT 0 CD a DT simple JJ word NN 1 CD multiple JJ spaces NNS are VBP skipped VVD because IN of IN our PP$ delim NN 2 CD use NN of IN quotes NNS to TO include VV a DT space NN in IN a DT word NN 3 CD use NN of IN a DT backslash NN to TO include VV a DT space NN in IN a DT word NN 4 CD use NN of IN a DT backslash NN to TO remove VV the DT special JJ meaning NN of IN a DT double JJ quote NN 5 CD another DT simple JJ word NN note VVP the DT lack NN of IN effect NN of IN the DT backslashed JJ double JJ quote NN Replacing VVG quotewords NNS s PP , , 0 CD , , q NN this DT is VBZ . SENT . SENT . SENT with IN shellwords NNS q NN this DT is VBZ . SENT . SENT . SENT is VBZ a DT simpler JJR way NN to TO accomplish VV the DT same JJ thing NN . SENT AUTHORS NNS Maintainer NN is VBZ Hal NP Pomeranz NP pomeranz NP netcom NP . SENT com NN , , 1994 CD 1997 CD Original JJ author NN unknown NN . SENT Much RB of IN the DT code NN for IN parse VV line NN including VVG the DT primary JJ regexp NN from IN Joerk NP Behrends NP jbehrends VVZ multimediaproduzenten JJ . SENT de FW . SENT Examples NNS section NN another DT documentation NN provided VVN by IN John NP Heidemann NP johnh NP ISI NP . SENT EDU NP Bug NN reports NNS , , patches NNS , , and CC nagging NN provided VVN by IN lots NNS of IN folks NNS thanks NNS everybody NN . SENT Special JJ thanks NNS to TO Michael NP Schwern NP schwern NN envirolink NN . SENT org NP for IN assuring VVG me PP that IN a DT nested VVN quotewords NNS would MD be VB useful JJ , , and CC to TO Jeff NP Friedl NP jfriedl NP yahoo NN inc NP . SENT com NN for IN telling VVG me PP not RB to TO worry VV about IN error NN checking NN sort NN of IN you PP had VHD to TO be VB there RB . SENT Hosted VVD by IN craftsmen NNS