Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax of one line split? correct? Incorrect?

Status
Not open for further replies.

sdslrn123

Technical User
Jan 17, 2006
78
GB
I am trying to split files with ';###KW'
(NOT INCLUDING SINGLE QUOTES)

Code:
@finalcount = split (';###KW',$secondstring);

Is this right?
(It isn't because I have tried. Why?)
 
Code:
@finalcount = split (/;\#\#\#KW/,$secondstring);
Try the above ...

Paul
------------------------------------
Spend an hour a week on CPAN, helps cure all known programming ailments ;-)
 
The OP's original code works fine for me, anyway.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top