Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Problem with string manipulation

by fruiture (Curate)
on Jan 03, 2003 at 22:43 UTC ( [id://224141]=note: print w/replies, xml ) Need Help??


in reply to Problem with string manipulation

I'd use Text::ParseWords. Maybe it's to good for the purpose, but at will never be too bad for it.

use Text::ParseWords 'shellwords'; open my $infh , '<' , 'print_tools.txt' or die "... $!"; while( <$infh> ){ my $printer = ( shellwords($_) )[0]; print qq{modelCombo.addItem("$printer")\n}; } close $infh;
--
http://fruiture.de

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://224141]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-04-25 20:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found