Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^3: Changing the first word to uppercase

by jrtayloriv (Pilgrim)
on Feb 14, 2008 at 00:49 UTC ( #667857=note: print w/replies, xml ) Need Help??


in reply to Re^2: Changing the first word to uppercase
in thread Changing the first word to uppercase

The arguments from the command line are passed in via the @ARGV array. You can either write your own code to handle the args or parse them w/ Getopt::Std

And by the way, since you're doing this from Linux -- if there's no particular reason you need to do this in Perl, you can check into the utility sed, which was written to do this sort of thing, and will save you some typing.
  • Comment on Re^3: Changing the first word to uppercase

Replies are listed 'Best First'.
Re^4: Changing the first word to uppercase
by Anonymous Monk on Feb 14, 2008 at 01:01 UTC
    I was working with "sed" but it didnt give me the right answer indeed or i couldnt figure it out well!!! thats why i could only find the perl way....
      But you aren't finding anything, your are asking others to find it for you and not even trying to understand whats going on

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2020-12-05 18:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (65 votes). Check out past polls.

    Notices?