Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: pattern match a name from stdin

by anniyan (Monk)
on Oct 05, 2005 at 15:41 UTC ( #497642=note: print w/replies, xml ) Need Help??


in reply to pattern match a name from stdin

You add chomp($file).

print "$num_entry\n";

Also you are printing $num_entry which is not declared or used anywhere, check it.

Curly brace missing in your coding.

You coding works fine for me if i add that curly brace.

updated

Regards,
Anniyan
(CREATED in HELL by DEVIL to s|EVILS|GOODS|g in WORLD)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://497642]
help
Chatterbox?
[james28909]: i forgot how to link my scratch pad
[Lady_Aleena]: [pad://]
[james28909]: my scratchpad
[james28909]: and like i say, is just an example, not working code, but hopefully you understand what i mean. :)
[james28909]: and like i say, it would be alot of work to get around renaming 3 subs haha
[Lady_Aleena]: Well, you would have to add the file munging and a lot more.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (9)
As of 2017-05-24 05:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?