| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Spliiting a command line into two options |
Hi Sean! >>> I want $a to be tcob1tes and $b to be this is a test >> I'd read $ARGV[0] into $a, then set up a loop to read the rest of the >> $ARGV array, concatenate the bits with spaces, and shove it in $b... > I did that in the end, works a treat. And, of course, if you want more control over the command line parameters to a you could use getopts (Stn or Long)... Jame --- BBBS/LiI v4.01 Flag-5* Origin: http://bbs.rocasa.org (1:120/544) SEEN-BY: 633/267 270 @PATH: 120/544 774/605 123/500 106/2000 633/267 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.