Many thanks!But to take it from a file and not from a variable like $line?
> Hi Fransesco, > > Let's try this one then :) > > ($username, $name) = split(/:/, $line); > chomp($username); > chomp($name); > > I think you just learned chomp :) > > Regs David > ----------------- > > > > I haven't yet resolved my problem with pattern matching and I'm in front > > of another problem. > > I have a file with > > > > username: name #there are one or more white space > > > > I need to make a new file with > > > > name username > > > > I think I can do it with split but I don't know how.A little help?Thanks > > > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]