On Fri, Dec 02, 2005 at 10:22:47AM +0000, Mads N. Vestergaard wrote:

> I have a script where I need to replace 45  in the beginning, with nothing 
> in a variable....
> 
> It looks like this:
> 
> #!/usr/bin/perl
> 
> $modtager = "45247";
> 
> $modtager =~s/45//;
> 
> Then $modtager is 247, but if forinstance the number is 4545247, it should 
> return 45247, how do I do this ?

What is wrong with what you have?  If it is not doing what you want you
will have to explain in more detail what you want and what you are
getting.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to