Re: JPG FILE DOUBTS

2004-01-16 Thread John McKown
On Fri, 16 Jan 2004, Jan Eden wrote: > Jan Eden wrote: > > Sorry! Please disregard my previous post, I overlooked the backquotes. > > - Jan > I gotta learn to read all the posts before replying to correct somebody who has already corrected themselves. Sorry about that. Well, maybe my explana

Re: JPG FILE DOUBTS

2004-01-16 Thread John McKown
On Fri, 16 Jan 2004, Jan Eden wrote: > > > > >if (`file $file` =~ /JPEG/) { > > print "$file appears to be a JPEG file.\n"; > >} else { > > print "$file does not appear to be a JPEG file.\n"; > >} > > > This will tell you if the filename contains a certain string. That does > not make the fi

Re: JPG FILE DOUBTS

2004-01-16 Thread Jan Eden
Jan Eden wrote: > >John McKown wrote: > >>On Thu, 15 Jan 2004, Andre Chaves Mascarenhas wrote: >> >>> Hello i wanna know what Perl module can I use and what commands to do the >>folowing: >>> 1-Check to see if the file is a valid jpg file >> >>You didn't say what OS. If you're running Linux (or a

Re: JPG FILE DOUBTS

2004-01-16 Thread Jan Eden
John McKown wrote: >On Thu, 15 Jan 2004, Andre Chaves Mascarenhas wrote: > >> Hello i wanna know what Perl module can I use and what commands to do the >folowing: >> 1-Check to see if the file is a valid jpg file > >You didn't say what OS. If you're running Linux (or almost any UNIX based >syst

Re: JPG FILE DOUBTS

2004-01-15 Thread John McKown
On Thu, 15 Jan 2004, Andre Chaves Mascarenhas wrote: > Hello i wanna know what Perl module can I use and what commands to do the folowing: > 1-Check to see if the file is a valid jpg file You didn't say what OS. If you're running Linux (or almost any UNIX based system), then I'd do something lik

RE: JPG FILE DOUBTS

2004-01-15 Thread Dan Muey
> > > Hello i wanna know what Perl module can I use and what Howdy > commands to do the folowing: 1-Check to see if the file is a 1) use Imager, GD, Image::Magick, search.cpan.org search for image,jpg, jpeg > valid jpg file 2-Check the file size 2) perldoc -f stat > > Thanks in advance >

Re: JPG FILE DOUBTS

2004-01-15 Thread Dan Anderson
Check out http://search.cpan.org/ . I found a number of results doing a quick search for both JPEG and JPG. -Dan -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

JPG FILE DOUBTS

2004-01-15 Thread Andre Chaves Mascarenhas
Hello i wanna know what Perl module can I use and what commands to do the folowing: 1-Check to see if the file is a valid jpg file 2-Check the file size Thanks in advance