Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: There has to be an easier way...

by Shendal (Hermit)
on Aug 16, 2000 at 01:01 UTC ( [id://28031]=note: print w/replies, xml ) Need Help??


in reply to There has to be an easier way...

How about something like this:
#!/usr/bin/Perl -w use strict; my($str) = 'one|two|three|four|five|six|seven|eight|nine|ten'; my($this,$that,$other) = (split /\|/,$str)[2,7,8]; print "this:$this\nthat:$that\nother:$other\n";
Hope that helps,
Shendal

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2024-04-24 21:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found