Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: How can i get a substring from a String?

by krusty (Hermit)
on Oct 16, 2008 at 11:56 UTC ( #717461=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $qname1 = join ".",(split(/\./, $string))[2,3,4];
    
  2. or download this
    $qname1 = join ".",(split(/\./, $string))[-3,-2,-1];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://717461]
help
Chatterbox?
[SuicideJunkie]: Parse a serial number from a register. But it is humans that type it in originally.
[SuicideJunkie]: No respect for buffer sizes... give them a byte, they take three :D

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (12)
As of 2016-12-07 22:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (131 votes). Check out past polls.