Joe,
>From one Perl newbie to another, buy "Mastering Regular Expressions" by
Friedl. It's an O'reilly book. It is vey well written, and readable, I've
actually enjoyed reading it (believe it or not)! It really helps take the
mystery out of regexes. Try it out
brian
i guess i have to learn
Joseph Paish wrote:
>
> thanks to all that replied.
>
> i guess i have to learn my way around regular expressions now. i've managed
> to go this long without studying them because i find them to be cryptic (to
> say the least). at least this one is fairly simple, and by deconstructing it
> piec
Re: how to delete space at end of line
On Friday 29 November 2002 14:28, you wrote:
> Joseph Paish wrote:
> > i have a data file that i am reading into an array. some of the data
> > file entries have a space at the end of the line and some do not. is
> > there some way tha
On Friday 29 November 2002 14:28, you wrote:
> Joseph Paish wrote:
> > i have a data file that i am reading into an array. some of the data
> > file entries have a space at the end of the line and some do not. is
> > there some way that i can delete the space if it exists as i read each
> > line
Joseph Paish wrote:
>
> i have a data file that i am reading into an array. some of the data file
> entries have a space at the end of the line and some do not. is there some
> way that i can delete the space if it exists as i read each line (something
> like chomp deletes newlines if they exist
@==map$`x/ ?$/,<>
maintainable? sure ;-)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
o: perl_beginner
> Subject: how to delete space at end of line
>
>
> i have a data file that i am reading into an array. some of
> the data file
> entries have a space at the end of the line and some do not.
> is there some
> way that i can delete the space if it exists a
i have a data file that i am reading into an array. some of the data file
entries have a space at the end of the line and some do not. is there some
way that i can delete the space if it exists as i read each line (something
like chomp deletes newlines if they exist)? preferably something leg