Re: Matching the first string

2006-01-13 Thread Shawn Corey
John Doe wrote: [EMAIL PROTECTED] am Freitag, 13. Januar 2006 18.28: [...] i`ve written a script whose purpose is to put files in different directories by its first later, the problem is that every file begins with different chars for example "01 - Eminem Encore.mp3" my question is how can i ge

Re: Matching the first string

2006-01-13 Thread John Doe
[EMAIL PROTECTED] am Freitag, 13. Januar 2006 18.28: [...] > > i`ve written a script whose purpose is to put files in different > > directories by its first later, the problem is that every file begins > > with different chars for example "01 - Eminem Encore.mp3" > > my question is how can i get to

Re: Matching the first string

2006-01-13 Thread mgoland
- Original Message - From: alex litvak <[EMAIL PROTECTED]> Date: Thursday, January 12, 2006 3:11 pm Subject: Matching the first string > Hello all Hello > im new in perl and i need some help Welcome > > i`ve written a script whose purpose is to put files in different > directories by it

Re: Matching the first string

2006-01-12 Thread alex litvak
10x you Joan And Timothy. about the regular expressions --> im reading now the Perl Programming book, and i red about regular expressions, but i have to get used to this language and its abilities -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Matching the first string

2006-01-12 Thread John Doe
alex litvak am Donnerstag, 12. Januar 2006 21.11: > Hello all > im new in perl and i need some help > > i`ve written a script whose purpose is to put files in different > directories by its first later, the problem is that every file begins > with different chars for example "01 - Eminem Encore.mp3

RE: Matching the first string

2006-01-12 Thread Timothy Johnson
Check out 'perldoc perlre' and 'perldoc -f substr'. If you are using a regular expression, you can use the '^' character to denote the beginning of the string, and parentheses to grab what you need. You can also check out the substr() function. -Original Message- From: alex litvak [ma