John007 has asked for the wisdom of the Perl Monks concerning the following question:
Appreciate if you can help me in understanding the meaning of below line in the following code. What exactly below means.
Thanks in advance.$bakjobs->{"$2"}{"dbt"} = $1; $bakjobs->{"$2"}{"cdt"} =$3;
#!/usr/bin/perl my %bakjobs; &cdtcall(\%bakjobs); sub cdtcall(\%) { local($bakjobs) = shift; local($file); open (FILE, "./HD/PQ/c.bak"); while (<FILE>) { if ( /^BAK(\w+)+\s+([\w\_]+)\s*/i ) { $bakjobs->{"$2"}{"dbt"} = $1; $bakjobs->{"$2"}{"cdt"} =$3; } } close (FILE); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Understanding -> function
by ccn (Vicar) on Dec 28, 2008 at 19:26 UTC | |
by John007 (Acolyte) on Dec 28, 2008 at 19:51 UTC | |
by ysth (Canon) on Dec 28, 2008 at 20:43 UTC | |
|
Re: Understanding -> function
by plobsing (Friar) on Dec 28, 2008 at 19:43 UTC | |
by John007 (Acolyte) on Dec 28, 2008 at 20:02 UTC | |
by plobsing (Friar) on Dec 28, 2008 at 20:31 UTC | |
by AnomalousMonk (Archbishop) on Dec 29, 2008 at 00:33 UTC |