Fogle Cpl Shawn B wrote:
> 
> How would I go about going to a previous line?

Save the previous line in a variable or use tell() and seek() to
reposition the file pointer.


> I would also like to do several regexp's against a scalar value...something
> like this (hopefully you know a way for me to make this shorter!)
> 
> $next_music_file =~ s/[.]/ /;
> $next_music_file =~ s/^[0]//;
> $next_music_file =~ s/.flac//;
> $next_music_file =~ s/[_]/ /g;

Can you describe what you want to do in english?  The substitutions you
show can't be made much shorter.



John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to