Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How do I pull n characters off the front of a string?

by Masem (Monsignor)
on Apr 24, 2001 at 20:26 UTC ( [id://75125]=note: print w/replies, xml ) Need Help??


in reply to How do I pull n characters off the front of a string?

my ($x,$y) = ( $string =~ /^(.{$n})(.*)$/ );

Originally posted as a Categorized Answer.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-04-26 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found