Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: substr problem

by TStanley (Canon)
on Jul 13, 2002 at 18:28 UTC ( [id://181512]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: substr problem
in thread substr problem

so what you need is:
my $offset = -5; # or however many characters from the end # that you want my $new_string = substr $filename, $offset;

UPDATE: You might also want to read this

TStanley
--------
Never underestimate the power of very stupid people in large groups -- Anonymous

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (6)
As of 2024-03-28 19:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found