in reply to Re^2: search and replace strings in different files in a directory (Path::Tiny)
in thread search and replace strings in different files in a directory
Does this help clear it up?
#!/usr/bin/perl -- use strict; use warnings; use Data::Dump qw/ dd /; Main( @ARGV ); exit( 0 ); sub Main { dd( -argv, \@ARGV ); for my $ar ( @ARGV ){ Sky( $ar ); } Sky(6); } sub Sky { my( $ra ) = @_; dd( -ra, $ra ); dd( -args, \@_ ); } __END__ $ perl sky ("-argv", []) ("-ra", 6) ("-args", [6]) $ perl sky a b c ("-argv", ["a", "b", "c"]) ("-ra", "a") ("-args", ["a"]) ("-ra", "b") ("-args", ["b"]) ("-ra", "c") ("-args", ["c"]) ("-ra", 6) ("-args", [6])
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: search and replace strings in different files in a directory (Path::Tiny)
by PitifulProgrammer (Acolyte) on Aug 19, 2014 at 13:51 UTC | |
by Anonymous Monk on Aug 19, 2014 at 23:40 UTC | |
by PitifulProgrammer (Acolyte) on Aug 20, 2014 at 08:57 UTC | |
by PitifulProgrammer (Acolyte) on Aug 27, 2014 at 14:13 UTC | |
by Athanasius (Archbishop) on Aug 28, 2014 at 07:22 UTC | |
|