Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re^3: Usage of flags in scripts

by McDarren (Abbot)
on Jan 01, 2009 at 03:17 UTC ( #733596=note: print w/replies, xml ) Need Help??

in reply to Re^2: Usage of flags in scripts
in thread Usage of flags in scripts

or even...
sub say { # Perl Hacks #86 print @_, "\n"; }

Replies are listed 'Best First'.
Re^4: Usage of flags in scripts
by JadeNB (Chaplain) on Jan 01, 2009 at 18:25 UTC
    Except that this doesn't handle saying to filehandles properly:
    $ perl -e 'sub say { print @_, "\n" } say STDOUT "Hi"' Can't locate object method "say" via package "IO::Handle" at -e line 1

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://733596]
[marioroy]: LA only $ and \ needed backslash, not ' and ".
[marioroy]: my @music_times = qx(find \$HOME/Music/ Albums -type f -iname '*.mp3' -exec mp3info -p "%S\\n" {} \\;);
[marioroy]: I wanted to come back and report on that.
[marioroy]: cheers

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-04-23 22:38 GMT
Find Nodes?
    Voting Booth?
    I'm a fool:

    Results (433 votes). Check out past polls.