Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Pushing Filename parts into an array

by ehdonhon (Curate)
on Oct 31, 2002 at 00:13 UTC ( [id://209289]=note: print w/replies, xml ) Need Help??


in reply to Pushing Filename parts into an array

Do you know that your language code is always numeric and the user names never contain numerals? If not, you will run into problems. The other solutions would be to specify user names and language codes with delimeters or in fixed width format

Here's one possible solution:

my ($user, $lang, $desc, $published, $public ) = $line =~/([^\d]+)(\d+)\.([^\.]+)\.([^\.])\s+\(([^\)])\)/;

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://209289]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (4)
As of 2024-04-25 05:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found