Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^3: Changing the first word to uppercase

by jrtayloriv (Pilgrim)
on Feb 14, 2008 at 00:49 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://667857]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2024-04-25 07:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found