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

Re: CLI formatting

by jpeg (Chaplain)
on Jul 04, 2005 at 01:43 UTC ( [id://472103]=note: print w/replies, xml ) Need Help??


in reply to CLI formatting

There are probably modules, but backticks (or qx/ / to capture the output) and split(/\./, $line ) or a regex would do it. Check perldoc -f split, perldoc -f substr, and perldoc perlop for qx, and perldoc perlretut (sorry, but I don't post code until I see what people have tried.)

When you say "I have just made a CLI" I guess you don't mean you wrote the original program? If you did or have access to it, why not fix it there?

--
jpg

Log In?
Username:
Password:

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

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

    No recent polls found